mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Repair issue in open mode boolean evaluation
This commit is contained in:
parent
b184517dca
commit
8bf7bcad12
1 changed files with 2 additions and 3 deletions
|
@ -35,7 +35,7 @@ def minion_config(path):
|
|||
# Enableing open mode requires that the value be set to True, and nothing
|
||||
# else!
|
||||
if opts['open_mode']:
|
||||
if opts['open_mode'] == 'True':
|
||||
if opts['open_mode'] == True:
|
||||
opts['open_mode'] = True
|
||||
else:
|
||||
opts['open_mode'] = False
|
||||
|
@ -71,10 +71,9 @@ def master_config(path):
|
|||
# Enableing open mode requires that the value be set to True, and nothing
|
||||
# else!
|
||||
if opts['open_mode']:
|
||||
if opts['open_mode'] == 'True':
|
||||
if opts['open_mode'] == True:
|
||||
opts['open_mode'] = True
|
||||
else:
|
||||
opts['open_mode'] = False
|
||||
|
||||
|
||||
return opts
|
||||
|
|
Loading…
Add table
Reference in a new issue