mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Fix plint errors
Fix plint errors
This commit is contained in:
parent
f4f32421ab
commit
290d7b54af
@ -1290,7 +1290,7 @@ def set_container_setting(name, container, settings):
|
||||
value = "'{0}'".format(settings[setting])
|
||||
|
||||
# Map to numeric to support server 2008
|
||||
if (setting == 'processModel.identityType' and settings[setting] in identityType_map2numeric.keys()):
|
||||
if setting == 'processModel.identityType' and settings[setting] in identityType_map2numeric.keys():
|
||||
value = identityType_map2numeric[settings[setting]]
|
||||
|
||||
ps_cmd.extend(['Set-ItemProperty',
|
||||
@ -1313,7 +1313,7 @@ def set_container_setting(name, container, settings):
|
||||
|
||||
for setting in settings:
|
||||
# map identity type from numeric to string for comparing
|
||||
if (setting == 'processModel.identityType' and settings[setting] in identityType_map2string.keys()):
|
||||
if setting == 'processModel.identityType' and settings[setting] in identityType_map2string.keys():
|
||||
settings[setting] = identityType_map2string[settings[setting]]
|
||||
|
||||
if str(settings[setting]) != str(new_settings[setting]):
|
||||
|
Loading…
Reference in New Issue
Block a user