Skip to content

Commit

Permalink
Workaround pylint crash for now
Browse files Browse the repository at this point in the history
  • Loading branch information
lkubb committed Nov 23, 2022
1 parent 137e4d0 commit 448572f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion salt/states/x509_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1408,7 +1408,8 @@ def getextname(ext):
removed = []
builder_extensions = cx509.Extensions(_getattr_safe(builder, "_extensions"))

for ext in builder_extensions:
# iter is unnecessary, but avoids a pylint < 2.13.6 crash
for ext in iter(builder_extensions):
try:
cur_ext = current.extensions.get_extension_for_oid(ext.value.oid)
if cur_ext.critical != ext.critical or cur_ext.value != ext.value:
Expand Down

0 comments on commit 448572f

Please sign in to comment.