mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-14 11:08:06 +00:00
Fixing proxy tag issue. (#1568)
This commit is contained in:
committed by
GitHub
parent
3058f10349
commit
f505ece25f
@ -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(
|
||||
|
Reference in New Issue
Block a user