Merge pull request #26522 from cro/proxy_should_not_load

Do not load package provider if its not a proxy
This commit is contained in:
Shane Lee 2015-08-20 14:43:21 -06:00
commit 20fddf40a1

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