mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-17 20:38:06 +00:00
Check logging from error
to debug
, since (#1447)
1) having error logged fails `integration-test.py` 2) Method returns `None` and caller should decide whether this is an error or not Co-authored-by: stas <statis@microsoft.com>
This commit is contained in:
@ -39,7 +39,7 @@ def get_nsg(name: str) -> Optional[NetworkSecurityGroup]:
|
||||
nsg = network_client.network_security_groups.get(resource_group, name)
|
||||
return cast(NetworkSecurityGroup, nsg)
|
||||
except (ResourceNotFoundError, CloudError) as err:
|
||||
logging.error("nsg %s does not exist: %s", name, err)
|
||||
logging.debug("nsg %s does not exist: %s", name, err)
|
||||
return None
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user