Fixing proxy tag issue. (#1568)

This commit is contained in:
Noah McGregor Harper
2022-01-07 13:10:10 -08:00
committed by GitHub
parent 3058f10349
commit f505ece25f

View File

@ -116,12 +116,11 @@ def create_vm(
},
}
if tags:
params["tags"] = tags.copy()
if "ONEFUZZ_OWNER" in os.environ:
params["tags"] = {"OWNER": os.environ["ONEFUZZ_OWNER"]}
owner = os.environ.get("ONEFUZZ_OWNER")
if owner:
params["tags"]["OWNER"] = owner
if tags:
params["tags"].update(tags.copy())
try:
compute_client.virtual_machines.begin_create_or_update(