mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix bug: call in a proper order, if all devices
This commit is contained in:
parent
a98d5187f8
commit
a8e4c2162c
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ def call_switch(*args, **kwargs):
|
|||
'''
|
||||
out = dict()
|
||||
devices = call_lights()
|
||||
for dev_id in ('id' not in kwargs and devices.keys() or _get_devices(kwargs)):
|
||||
for dev_id in ('id' not in kwargs and sorted(devices.keys()) or _get_devices(kwargs)):
|
||||
if 'on' in kwargs:
|
||||
state = kwargs['on'] and Const.LAMP_ON or Const.LAMP_OFF
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue