File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,11 @@ def wait_for_operation(
73
73
74
74
@property
75
75
def image (self ) -> Image :
76
+ if self .instance_config .image is not None :
77
+ return self .image_client .get (
78
+ project = self .instance_config .image_project ,
79
+ image = self .instance_config .image ,
80
+ )
76
81
return self .image_client .get_from_family (
77
82
project = self .instance_config .image_project ,
78
83
family = self .instance_config .image_family ,
Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ class GCPConfig(BackendConfig):
108
108
class GCPInstanceConfig (InstanceConfig ):
109
109
image_family : str = "ubuntu-2004-lts"
110
110
image_project : str = "ubuntu-os-cloud"
111
+ image : Optional [str ] = None
111
112
machine_type : str = "e2-small"
112
113
subnetwork : str = "default"
113
114
enable_nested_virtualization : bool = True
You can’t perform that action at this time.
0 commit comments