diff --git a/salt/modules/supervisord.py b/salt/modules/supervisord.py index 9d756e47be..f25d98a724 100644 --- a/salt/modules/supervisord.py +++ b/salt/modules/supervisord.py @@ -14,11 +14,10 @@ from salt._compat import configparser, string_types def __virtual__(): - HAS_SUPER = salt.utils.which('supervisorctl') - if HAS_SUPER: - return True - else: - return False + # We can't decide at load time whether supervisorctl is present. The + # function _get_supervisorctl_bin does a much more thorough job and can + # only be accurate at call time. + return True def _get_supervisorctl_bin(bin_env):