File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -399,13 +399,12 @@ func createInstance(serviceAccount string) (string, error) {
399
399
var instance * compute.Instance
400
400
instance , err = computeService .Instances .Get (* project , * zone , name ).Do ()
401
401
if err != nil {
402
- glog .Error ( err )
402
+ glog .Errorf ( "Failed to get instance %v: %v" , name , err )
403
403
return false , nil
404
404
}
405
405
406
406
if strings .ToUpper (instance .Status ) != "RUNNING" {
407
- err = fmt .Errorf ("instance %s not in state RUNNING, was %s" , name , instance .Status )
408
- glog .Error (err )
407
+ glog .Warningf ("instance %s not in state RUNNING, was %s" , name , instance .Status )
409
408
return false , nil
410
409
}
411
410
@@ -416,7 +415,7 @@ func createInstance(serviceAccount string) (string, error) {
416
415
417
416
if sshOut , err := remote .SSHNoSudo (name , "echo" ); err != nil {
418
417
err = fmt .Errorf ("Instance %v in state RUNNING but not available by SSH: %v" , name , err )
419
- glog .Errorf ("SSH encountered an error: %v, output: %v" , err , sshOut )
418
+ glog .Warningf ("SSH encountered an error: %v, output: %v" , err , sshOut )
420
419
return false , nil
421
420
}
422
421
You can’t perform that action at this time.
0 commit comments