You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnfalse, fmt.Errorf("failed to import the image, err: %v\n\nRun the command \"pvsadm get events -i %s\" to get more information about the failure", err, pvmclient.InstanceID)
232
233
}
233
-
ifimg.State=="active" {
234
+
ifimg.State==imageStateActive {
235
+
klog.Infof("Successfully imported the image: %s with ID: %s in %s", *image.Name, *image.ImageID, time.Since(start))
234
236
returntrue, nil
235
237
}
236
-
klog.Infof("Import in-progress, current state: %s", img.State)
238
+
klog.Infof("Waiting for image to be active. Current state: %s", img.State)
237
239
returnfalse, nil
238
240
})
239
-
ifpollErr==wait.ErrWaitTimeout {
240
-
pollErr=fmt.Errorf("timed out while waiting for image to become ready state")
241
-
}
242
-
243
-
ifpollErr!=nil {
244
-
returnfmt.Errorf("failed to import the image, err: %v\n\nRun this command to get more information for the failure: pvsadm get events -i %s", pollErr, pvmclient.InstanceID)
245
-
}
246
-
247
-
klog.Infof("Successfully imported the image: %s with ID: %s within %s", *image.Name, *image.ImageID, time.Since(start))
0 commit comments