use global to fail as its not in self
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
This commit is contained in:
parent
71b3d7043b
commit
220fe24d39
1 changed files with 1 additions and 1 deletions
|
@ -636,7 +636,7 @@ class LinuxHardware(Hardware):
|
||||||
if e.errno == errno.ENOENT:
|
if e.errno == errno.ENOENT:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
self.fail_json(msg=e.strerror)
|
module.fail_json(msg=e.strerror)
|
||||||
|
|
||||||
self.facts['mounts'].append(
|
self.facts['mounts'].append(
|
||||||
{'mount': fields[1],
|
{'mount': fields[1],
|
||||||
|
|
Loading…
Reference in a new issue