mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fixed capitalization... Failed and Already
This commit is contained in:
parent
e9552455c4
commit
d84ad5d519
1 changed files with 2 additions and 2 deletions
|
@ -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': 'Already installed but might install sub-features'.format(name)}
|
||||
else:
|
||||
ret['comment'] = 'The feature {0} is already installed'.format(name)
|
||||
return ret
|
||||
|
@ -53,7 +53,7 @@ def installed(name, recurse=False, force=False):
|
|||
if 'Success' in ret['changes']['feature']:
|
||||
ret['result'] = ret['changes']['feature']['Success'] == 'True'
|
||||
if not ret['result']:
|
||||
ret['comment'] = 'failed to install the feature: {0}'.format(ret['changes']['feature']['ExitCode'])
|
||||
ret['comment'] = 'Failed to install the feature: {0}'.format(ret['changes']['feature']['ExitCode'])
|
||||
else:
|
||||
ret['result'] = False
|
||||
ret['comment'] = 'Failed to install {0}.\nError Message:\n{1}'.format(name, ret['changes']['feature']['message'])
|
||||
|
|
Loading…
Add table
Reference in a new issue