From 5dab2efcdf0fe9c02edc5081d8672ea10b46b90d Mon Sep 17 00:00:00 2001 From: Michael Lambert Date: Mon, 24 Sep 2012 15:30:43 -0500 Subject: [PATCH] Fixed obvious bug with missing self parameter to is_executable method --- lib/ansible/module_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_common.py b/lib/ansible/module_common.py index d8648685ac..7955bd01c0 100644 --- a/lib/ansible/module_common.py +++ b/lib/ansible/module_common.py @@ -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]