mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #28186 from plastikos/bug-philips_hue
philips_hue fails during unit tests.
This commit is contained in:
commit
45e75b21da
@ -29,7 +29,7 @@ def _proxy():
|
||||
'''
|
||||
Get proxy.
|
||||
'''
|
||||
return __opts__['proxymodule']
|
||||
return __opts__.get('proxymodule')
|
||||
|
||||
|
||||
def __virtual__():
|
||||
@ -37,6 +37,9 @@ def __virtual__():
|
||||
Start the Philips HUE only for proxies.
|
||||
'''
|
||||
|
||||
if not _proxy():
|
||||
return False
|
||||
|
||||
def _mkf(cmd_name, doc):
|
||||
def _cmd(*args, **kw):
|
||||
return _proxy()[_proxy().loaded_base_name + "." + cmd_name](*args, **kw)
|
||||
|
Loading…
Reference in New Issue
Block a user