mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
states.win_servermanager.installed(): fix string formatting
************* Module salt.states.win_servermanager salt/states/win_servermanager.py:41: [E1305(too-many-format-args), installed] Too many arguments for format string
This commit is contained in:
parent
09a892861a
commit
6b339389a9
@ -38,7 +38,7 @@ def installed(name, recurse=False, force=False):
|
||||
if name not in __salt__['win_servermanager.list_installed']():
|
||||
ret['changes'] = {'feature': '{0} will be installed recurse={1}'.format(name, recurse)}
|
||||
elif force and recurse:
|
||||
ret['changes'] = {'feature': 'already installed but might install sub-features'.format(name)}
|
||||
ret['changes'] = {'feature': '{0} already installed but might install sub-features'.format(name)}
|
||||
else:
|
||||
ret['comment'] = 'The feature {0} is already installed'.format(name)
|
||||
return ret
|
||||
|
Loading…
Reference in New Issue
Block a user