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 @@ -626,9 +626,11 @@ def __init__(
626
626
"gpu_instance" : self .gpu_instance ,
627
627
"bootstrap" : self .bootstrap ,
628
628
"auto_shutdown" : self .auto_shutdown ,
629
- "preemptible" : preemptible
630
- if preemptible is not None
631
- else self .config .get ("preemptible" ),
629
+ "preemptible" : (
630
+ preemptible
631
+ if preemptible is not None
632
+ else self .config .get ("preemptible" )
633
+ ),
632
634
"instance_labels" : instance_labels or self .config .get ("instance_labels" ),
633
635
"service_account" : service_account or self .config .get ("service_account" ),
634
636
}
@@ -652,7 +654,12 @@ def refresh_client(self):
652
654
credentials , _ = google .auth .default ()
653
655
654
656
# Use the credentials to build a service client
655
- return googleapiclient .discovery .build ("compute" , "v1" , credentials = credentials )
657
+ return googleapiclient .discovery .build (
658
+ "compute" ,
659
+ "v1" ,
660
+ credentials = credentials ,
661
+ requestBuilder = build_request (credentials ),
662
+ )
656
663
657
664
def instances (self ):
658
665
try :
You can’t perform that action at this time.
0 commit comments