mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-15 11:28:09 +00:00
NSG feature branch cleanup. (#1422)
This commit is contained in:
committed by
Stas
parent
3c519f0372
commit
c2bfa2a132
@ -46,8 +46,8 @@ def get_subnet(
|
||||
|
||||
def get_subnet_id(resource_group: str, name: str, subnet_name: str) -> Optional[str]:
|
||||
subnet = get_subnet(resource_group, name, subnet_name)
|
||||
if subnet:
|
||||
return cast(str, subnet.id)
|
||||
if subnet and isinstance(subnet.id, str):
|
||||
return subnet.id
|
||||
else:
|
||||
return None
|
||||
|
||||
|
Reference in New Issue
Block a user