From 5e87a37c86ed27e4451a8c5c2215146e4346cb8f Mon Sep 17 00:00:00 2001 From: bra-fsn Date: Thu, 20 Jun 2024 23:48:52 +0200 Subject: [PATCH] Work on copy --- pyproject.toml | 2 +- src/sc_runner/resources/gcp.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 95d3300..056d1bc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "sparecores-runner" -version = "0.0.15" +version = "0.0.16" requires-python = ">= 3.9" dependencies = [ "click", diff --git a/src/sc_runner/resources/gcp.py b/src/sc_runner/resources/gcp.py index 07ec37b..c808b2f 100644 --- a/src/sc_runner/resources/gcp.py +++ b/src/sc_runner/resources/gcp.py @@ -28,6 +28,8 @@ def resources_gcp( if "zone" in instance_opts: # as zone is part of the Pulumi stack name, it must be specified in the zone option and not in instance_opts raise ValueError("zone must be specified in the zone option") + # we don't want to modify the default + instance_opts = copy.deepcopy(instance_opts) provider = gcp.Provider( resource_name=zone, zone=zone,