Commit 9c9bc09c by Michael DeHaan

Merge pull request #3622 from bcoca/fix_the_stat_fix

use global to fail as its not in self
parents 2fe25f19 3f85a82a
...@@ -636,7 +636,7 @@ class LinuxHardware(Hardware): ...@@ -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],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment