Fucking templates.

This commit is contained in:
2023-03-30 17:11:20 +03:00
parent 5f7c69c57c
commit 7768ce1636

View File

@@ -978,6 +978,7 @@ def create_node(provider, name=None, location=None, size=None, image=None, confi
dr = get_corresponding_driver(provider)
assert dr is not None, "Driver is not set up correctly"
image = get_driver(Provider.EC2)(SECDEP_AWS_ACCESS_KEY, SECDEP_AWS_SECRET_KEY, region=region).get_image(image)
# If we could use the docker python sdk to search for docker images without the need for the docker engine to be installed on the host system, we could now validate the image's names to be downloaded
# In the case of gce we need to give the sa_scopes and the ex_metadata parameters
if provider == "gce":
sa_scopes = [{"email": "default","scopes": ["cloud-platform"]}]