Fix 'function' has no attribute 'errno' (#2502)

pull/18777/head
David Fischer 8 years ago committed by Matt Clay
parent 3aa7e3371f
commit 0c8f95f59a

@ -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:

Loading…
Cancel
Save