mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
use global to fail as its not in self
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
This commit is contained in:
@@ -636,7 +636,7 @@ class LinuxHardware(Hardware):
|
||||
if e.errno == errno.ENOENT:
|
||||
pass
|
||||
else:
|
||||
self.fail_json(msg=e.strerror)
|
||||
module.fail_json(msg=e.strerror)
|
||||
|
||||
self.facts['mounts'].append(
|
||||
{'mount': fields[1],
|
||||
|
||||
Reference in New Issue
Block a user