File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -629,9 +629,11 @@ def __init__(
629
629
"gpu_instance" : self .gpu_instance ,
630
630
"bootstrap" : self .bootstrap ,
631
631
"auto_shutdown" : self .auto_shutdown ,
632
- "preemptible" : preemptible
633
- if preemptible is not None
634
- else self .config .get ("preemptible" ),
632
+ "preemptible" : (
633
+ preemptible
634
+ if preemptible is not None
635
+ else self .config .get ("preemptible" )
636
+ ),
635
637
"instance_labels" : instance_labels or self .config .get ("instance_labels" ),
636
638
"service_account" : service_account or self .config .get ("service_account" ),
637
639
}
@@ -671,7 +673,12 @@ def refresh_client(self):
671
673
credentials , _ = google .auth .default ()
672
674
673
675
# Use the credentials to build a service client
674
- return googleapiclient .discovery .build ("compute" , "v1" , credentials = credentials )
676
+ return googleapiclient .discovery .build (
677
+ "compute" ,
678
+ "v1" ,
679
+ credentials = credentials ,
680
+ requestBuilder = build_request (credentials ),
681
+ )
675
682
676
683
def instances (self ):
677
684
try :
You can’t perform that action at this time.
0 commit comments