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: if "ONEFUZZ_OWNER" in os.environ:
params["tags"] = tags.copy() params["tags"] = {"OWNER": os.environ["ONEFUZZ_OWNER"]}
owner = os.environ.get("ONEFUZZ_OWNER") if tags:
if owner: params["tags"].update(tags.copy())
params["tags"]["OWNER"] = owner
try: try:
compute_client.virtual_machines.begin_create_or_update( compute_client.virtual_machines.begin_create_or_update(