diff --git a/library/system/setup b/library/system/setup index 5b78aae02e..e6fde009af 100644 --- a/library/system/setup +++ b/library/system/setup @@ -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],