Explorar el Código

provisioner logging status

Justin Rhee hace 3 años
padre
commit
655e51c8ea

+ 6 - 0
dashboard/src/components/ProvisionerSettings.tsx

@@ -121,7 +121,10 @@ const ProvisionerSettings: React.FC<Props> = props => {
       );
       );
 
 
       // Only refresh and set clusters on initial create
       // Only refresh and set clusters on initial create
+      console.log("created cluster id:", res.data.cluster_id);
+      console.log("raw request:", res);
       if (!props.clusterId) {
       if (!props.clusterId) {
+        console.log("refreshing clusters")
         setShouldRefreshClusters(true);
         setShouldRefreshClusters(true);
         api.getClusters(
         api.getClusters(
           "<token>",
           "<token>",
@@ -129,8 +132,11 @@ const ProvisionerSettings: React.FC<Props> = props => {
           { id: currentProject.id },
           { id: currentProject.id },
         )
         )
           .then(({ data }) => {
           .then(({ data }) => {
+            console.log("res", data);
             data.forEach((cluster: ClusterType) => {
             data.forEach((cluster: ClusterType) => {
+              console.log("checking against:", cluster.id);
               if (cluster.id === res.data.cluster_id) {
               if (cluster.id === res.data.cluster_id) {
+                console.log("matched cluster id");
                 // setHasFinishedOnboarding(true);
                 // setHasFinishedOnboarding(true);
                 setCurrentCluster(cluster);
                 setCurrentCluster(cluster);
                 OFState.actions.goTo("clean_up");
                 OFState.actions.goTo("clean_up");

+ 1 - 0
dashboard/src/main/home/cluster-dashboard/dashboard/ClusterRevisionSelector.tsx

@@ -104,6 +104,7 @@ const ClusterRevisionSelector: React.FC<Props> = ({
   };
   };
 
 
 const deleteContract = () => {
 const deleteContract = () => {
+    console.log(failedContractId);
     api.deleteContract(
     api.deleteContract(
       "<token>",
       "<token>",
       {},
       {},