mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
correct checking of policy_class to compare with lower() version of the specified string (#39084)
This commit is contained in:
parent
8ce928f050
commit
8b34fcdb45
1 changed files with 3 additions and 3 deletions
|
@ -203,12 +203,12 @@ def set_(name,
|
|||
else:
|
||||
user_policy = {}
|
||||
computer_policy = {}
|
||||
if policy_class == 'both':
|
||||
if policy_class.lower() == 'both':
|
||||
user_policy[name] = setting
|
||||
computer_policy[name] = setting
|
||||
elif policy_class == 'user':
|
||||
elif policy_class.lower() == 'user':
|
||||
user_policy[name] = setting
|
||||
elif policy_class == 'machine' or policy_class == 'computer':
|
||||
elif policy_class.lower() == 'machine' or policy_class.lower() == 'computer':
|
||||
computer_policy[name] = setting
|
||||
pol_data = {}
|
||||
pol_data['user'] = {'output_section': 'User Configuration',
|
||||
|
|
Loading…
Add table
Reference in a new issue