mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Make sure virtual package provider does not load for non-proxies
This commit is contained in:
parent
682b5ee4f3
commit
789defae5b
@ -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