1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fixed obvious bug with missing self parameter to is_executable method

This commit is contained in:
Michael Lambert 2012-09-24 15:30:43 -05:00 committed by Michael DeHaan
parent 29ac1a8efc
commit 5dab2efcdf

View file

@ -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]