mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
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:
commit
20fddf40a1
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user