Make sure virtual package provider does not load for non-proxies

This commit is contained in:
C. R. Oldham 2015-08-20 10:30:17 -06:00
parent 682b5ee4f3
commit 789defae5b

View File

@ -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