Commit 162530dd by Michael DeHaan

Merge pull request #3595 from bcoca/fix_selinux_fix

missing self in self method usages
parents f4b1e426 c8d6e5be
......@@ -265,9 +265,9 @@ class AnsibleModule(object):
def selinux_enabled(self):
if not HAVE_SELINUX:
seenabled = get_bin_path('selinuxenabled')
seenabled = self.get_bin_path('selinuxenabled')
if seenabled is not None:
(rc,out,err) = run_command(seenabled)
(rc,out,err) = self.run_command(seenabled)
if rc == 0:
self.fail_json(msg="Aborting, target uses selinux but python bindings (python-selinux) aren't installed!")
return False
......
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