File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ import (
29
29
30
30
"k8s.io/apimachinery/pkg/util/uuid"
31
31
"k8s.io/apimachinery/pkg/util/wait"
32
+ gce "sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/pkg/gce-cloud-provider"
32
33
"sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/test/remote/remote"
33
34
34
35
"github.com/golang/glog"
@@ -268,7 +269,7 @@ func createInstance(serviceAccount string) (string, error) {
268
269
myuuid := string (uuid .NewUUID ())
269
270
glog .V (2 ).Infof ("Creating instance: %v" , name )
270
271
271
- imageURL := "https://www.googleapis.com/compute/v1/projects/eip -images/global/images/debian-9-drawfork-v20180423 "
272
+ imageURL := "https://www.googleapis.com/compute/v1/projects/ml -images/global/images/debian-9-tf-1-9-v20180625 "
272
273
i := & compute.Instance {
273
274
Name : name ,
274
275
MachineType : machineType ("" ),
@@ -400,6 +401,9 @@ func deleteInstance(host string) {
400
401
glog .Infof ("Deleting instance %q" , host )
401
402
_ , err := computeService .Instances .Delete (* project , * zone , host ).Do ()
402
403
if err != nil {
404
+ if gce .IsGCEError (err , "notFound" ) {
405
+ return
406
+ }
403
407
glog .Errorf ("Error deleting instance %q: %v" , host , err )
404
408
}
405
409
}
You can’t perform that action at this time.
0 commit comments