diff options
author | Zuul <zuul@review.opendev.org> | 2022-10-26 20:12:30 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2022-10-26 20:12:30 +0000 |
commit | 59a11e0fae1614a0dcb3832db09eddd3c74318a3 (patch) | |
tree | f0c0df13db1d08d0bd29a44282fac1035514d919 | |
parent | bf05e7102ae96873858654be8b8e73eb29f6da4d (diff) | |
parent | 640b10663e1d3722d91c118be1adce1f500ebcde (diff) | |
download | ironic-59a11e0fae1614a0dcb3832db09eddd3c74318a3.tar.gz |
Merge "Suppress Bandit B509 in snmp.py" into stable/victoria
-rw-r--r-- | ironic/drivers/modules/snmp.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ironic/drivers/modules/snmp.py b/ironic/drivers/modules/snmp.py index ab6c3ade4..95d68ff15 100644 --- a/ironic/drivers/modules/snmp.py +++ b/ironic/drivers/modules/snmp.py @@ -230,7 +230,10 @@ class SNMPClient(object): object depending on SNMP version being used. """ if self.version == SNMP_V3: - return snmp.UsmUserData( + # NOTE(TheJulia): Ignore Bandit error B509 argument parsing as + # the check is for a count of <3 arguments, however our line + # wrapping causes the check to trigger. + return snmp.UsmUserData( # nosec B509 self.user, authKey=self.auth_key, authProtocol=self.auth_proto, |