Migrate apt_repository, group, and supervisorctl to use module.get_bin_path

This commit is contained in:
Stephen Fromm
2012-08-21 07:36:38 -07:00
parent 4c62e495eb
commit bdb39058ae
3 changed files with 12 additions and 18 deletions

View File

@@ -52,7 +52,9 @@ def main():
name = module.params['name']
state = module.params['state']
SUPERVISORCTL = _find_supervisorctl()
SUPERVISORCTL = module.get_bin_path('supervisorctl')
if SUPERVISORCTL is None:
module.fail_json(msg='supervisorctl is not installed')
if SUPERVISORCTL is None:
module.fail_json(msg='supervisorctl is not installed')