mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #43255 from gtmanfred/2017.7
always return a dict object
This commit is contained in:
commit
1fc7307735
@ -447,8 +447,8 @@ def optional_args(proxy=None):
|
|||||||
device2:
|
device2:
|
||||||
True
|
True
|
||||||
'''
|
'''
|
||||||
opt_args = _get_device_grain('optional_args', proxy=proxy)
|
opt_args = _get_device_grain('optional_args', proxy=proxy) or {}
|
||||||
if _FORBIDDEN_OPT_ARGS:
|
if opt_args and _FORBIDDEN_OPT_ARGS:
|
||||||
for arg in _FORBIDDEN_OPT_ARGS:
|
for arg in _FORBIDDEN_OPT_ARGS:
|
||||||
opt_args.pop(arg, None)
|
opt_args.pop(arg, None)
|
||||||
return {'optional_args': opt_args}
|
return {'optional_args': opt_args}
|
||||||
|
Loading…
Reference in New Issue
Block a user