@@ -106,14 +106,16 @@ def __init__(
106106
107107 self .general_zone = "-" .join (self .zone .split ("-" )[:2 ]) # us-east1-c -> us-east1
108108 self .service_account = service_account or self .config .get ("service_account" )
109-
109+
110110 # Default scopes for instance service account
111111 default_scopes = [
112112 "https://www.googleapis.com/auth/devstorage.read_write" ,
113113 "https://www.googleapis.com/auth/logging.write" ,
114114 "https://www.googleapis.com/auth/monitoring.write" ,
115115 ]
116- self .instance_scopes = instance_scopes or self .config .get ("instance_scopes" , default_scopes )
116+ self .instance_scopes = instance_scopes or self .config .get (
117+ "instance_scopes" , default_scopes
118+ )
117119
118120 def create_gcp_config (self ):
119121 subnetwork = f"projects/{ self .network_projectid } /regions/{ self .general_zone } /subnetworks/{ self .network } "
@@ -523,8 +525,8 @@ class GCPCluster(VMCluster):
523525 Defaults to the default Compute Engine service account for your GCP project.
524526 instance_scopes: list (optional)
525527 List of GCP OAuth scopes to assign to the service account on instances.
526- Defaults to ``["https://www.googleapis.com/auth/devstorage.read_write",
527- "https://www.googleapis.com/auth/logging.write",
528+ Defaults to ``["https://www.googleapis.com/auth/devstorage.read_write",
529+ "https://www.googleapis.com/auth/logging.write",
528530 "https://www.googleapis.com/auth/monitoring.write"]``.
529531 service_account_credentials: Optional[Dict[str, Any]]
530532 Service account credentials to create the compute engine Vms
0 commit comments