From 94b8ebe1bf1bd3ac3fc1460460d70f53dc7bd9d5 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Fri, 25 Sep 2015 07:47:06 -0700 Subject: [PATCH] Use is_executable from its new location --- web_infrastructure/supervisorctl.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/web_infrastructure/supervisorctl.py b/web_infrastructure/supervisorctl.py index 9bc4c0b8afa..4da81ed6e0e 100644 --- a/web_infrastructure/supervisorctl.py +++ b/web_infrastructure/supervisorctl.py @@ -122,7 +122,7 @@ def main(): if supervisorctl_path: supervisorctl_path = os.path.expanduser(supervisorctl_path) - if os.path.exists(supervisorctl_path) and module.is_executable(supervisorctl_path): + if os.path.exists(supervisorctl_path) and is_executable(supervisorctl_path): supervisorctl_args = [supervisorctl_path] else: module.fail_json( @@ -239,5 +239,6 @@ def main(): # import module snippets from ansible.module_utils.basic import * - -main() +# is_executable from basic +if __name__ == '__main__': + main()