Fixed obvious bug with missing self parameter to is_executable method
This commit is contained in:
parent
29ac1a8efc
commit
5dab2efcdf
1 changed files with 1 additions and 1 deletions
|
@ -283,7 +283,7 @@ class AnsibleModule(object):
|
|||
print self.jsonify(kwargs)
|
||||
sys.exit(1)
|
||||
|
||||
def is_executable(path):
|
||||
def is_executable(self, path):
|
||||
'''is the given path executable?'''
|
||||
return (stat.S_IXUSR & os.stat(path)[stat.ST_MODE]
|
||||
or stat.S_IXGRP & os.stat(path)[stat.ST_MODE]
|
||||
|
|
Loading…
Reference in a new issue