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:
Chris Rebert 2014-07-28 16:45:10 -07:00
parent 09a892861a
commit 6b339389a9

View File

@ -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