mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Fix blatant bug in salt.utils.option
This commit is contained in:
parent
8339af546d
commit
9671aca219
@ -909,11 +909,15 @@ def rm_rf(path):
|
|||||||
def option(
|
def option(
|
||||||
value,
|
value,
|
||||||
default='',
|
default='',
|
||||||
opts,
|
opts=None,
|
||||||
pillar):
|
pillar=None):
|
||||||
'''
|
'''
|
||||||
Pass in a generic option and receive the value that will be assigned
|
Pass in a generic option and receive the value that will be assigned
|
||||||
'''
|
'''
|
||||||
|
if opts is None:
|
||||||
|
opts = {}
|
||||||
|
if pillar is None:
|
||||||
|
pillar = {}
|
||||||
if value in opts:
|
if value in opts:
|
||||||
return opts[value]
|
return opts[value]
|
||||||
if value in pillar.get('master', {}):
|
if value in pillar.get('master', {}):
|
||||||
|
Loading…
Reference in New Issue
Block a user