mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #6783 from shadowfax-chc/eselect-fix
Fixed backwards logic in eselect set state
This commit is contained in:
commit
669416064e
@ -57,15 +57,15 @@ def set_(name, target):
|
||||
else:
|
||||
result = __salt__['eselect.set_target'](name, target)
|
||||
if result:
|
||||
ret['changes'][name] = {'old': old_target, 'new': target}
|
||||
ret['comment'] = 'Target {0!r} set on {1!r} module.'.format(
|
||||
target, name
|
||||
)
|
||||
else:
|
||||
ret['comment'] = (
|
||||
'Target {0!r} failed to be set on {1!r} module.'.format(
|
||||
target, name
|
||||
)
|
||||
)
|
||||
ret['result'] = False
|
||||
else:
|
||||
ret['changes'][name] = {'old': old_target, 'new': target}
|
||||
ret['comment'] = 'Target {0!r} set on {1!r} module.'.format(
|
||||
target, name
|
||||
)
|
||||
return ret
|
||||
|
Loading…
Reference in New Issue
Block a user