mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-07 11:13:10 +00:00
Fix 'function' has no attribute 'errno' (#2502)
This commit is contained in:
@@ -124,7 +124,7 @@ def enforce_state(module, params):
|
||||
try:
|
||||
inf=open(path,"r")
|
||||
except IOError:
|
||||
e = get_exception
|
||||
e = get_exception()
|
||||
if e.errno == errno.ENOENT:
|
||||
inf=None
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user