mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-15 03:18:07 +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:
|
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(
|
||||||
|
Reference in New Issue
Block a user