mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Need to check e.errno instead of os.errno. Fixes #8548
This commit is contained in:
@@ -198,7 +198,7 @@ def main():
|
||||
break
|
||||
except OSError, e:
|
||||
# File not present
|
||||
if os.errno == 2:
|
||||
if e.errno == 2:
|
||||
time.sleep(1)
|
||||
else:
|
||||
elapsed = datetime.datetime.now() - start
|
||||
|
||||
Reference in New Issue
Block a user