Commit 5dab2efc by Michael Lambert Committed by Michael DeHaan

Fixed obvious bug with missing self parameter to is_executable method

parent 29ac1a8e
...@@ -283,7 +283,7 @@ class AnsibleModule(object): ...@@ -283,7 +283,7 @@ class AnsibleModule(object):
print self.jsonify(kwargs) print self.jsonify(kwargs)
sys.exit(1) sys.exit(1)
def is_executable(path): def is_executable(self, path):
'''is the given path executable?''' '''is the given path executable?'''
return (stat.S_IXUSR & os.stat(path)[stat.ST_MODE] return (stat.S_IXUSR & os.stat(path)[stat.ST_MODE]
or stat.S_IXGRP & os.stat(path)[stat.ST_MODE] or stat.S_IXGRP & os.stat(path)[stat.ST_MODE]
......
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