Fix 'function' has no attribute 'errno' (#2502)
This commit is contained in:
parent
9231241c8b
commit
93540b7269
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ def enforce_state(module, params):
|
||||||
try:
|
try:
|
||||||
inf=open(path,"r")
|
inf=open(path,"r")
|
||||||
except IOError:
|
except IOError:
|
||||||
e = get_exception
|
e = get_exception()
|
||||||
if e.errno == errno.ENOENT:
|
if e.errno == errno.ENOENT:
|
||||||
inf=None
|
inf=None
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue