Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
validate that subnet nsg is set before getting it's id (#1409)
Browse files Browse the repository at this point in the history
Co-authored-by: stas <statis@microsoft.com>
  • Loading branch information
stishkin and stas committed Nov 4, 2021
1 parent 146b8c4 commit 5e1a5f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api-service/__app__/onefuzzlib/azure/nsg.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def associate_subnet(
)

# this is noop, since correct NSG is already assigned
if subnet.network_security_group.id == nsg.id:
if subnet.network_security_group and subnet.network_security_group.id == nsg.id:
return None

logging.info(
Expand Down

0 comments on commit 5e1a5f8

Please sign in to comment.