diff --git a/salt/modules/rest_package.py b/salt/modules/rest_package.py index b30c6f2523..81785bd85f 100644 --- a/salt/modules/rest_package.py +++ b/salt/modules/rest_package.py @@ -19,11 +19,7 @@ def __virtual__(): ''' Only work on proxy ''' - # Enable on these platforms only. - enable = set(( - 'proxy', - )) - if __grains__['os'] in enable: + if 'proxymodule' in __opts__: return __virtualname__ return False