mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Return proper results for 'test=True'
This commit is contained in:
parent
e91be299fc
commit
e0091310ff
@ -25,7 +25,7 @@ def enabled(name):
|
||||
ret['changes'] = {'enabled rdp': True}
|
||||
|
||||
if __opts__['test']:
|
||||
ret['result'] = None
|
||||
ret['result'] = stat
|
||||
return ret
|
||||
|
||||
ret['result'] = __salt__['rdp.enable']()
|
||||
@ -46,6 +46,7 @@ def disabled(name):
|
||||
ret['changes'] = {'disable rdp': True}
|
||||
|
||||
if __opts__['test']:
|
||||
ret['result'] = stat
|
||||
return ret
|
||||
|
||||
ret['result'] = __salt__['rdp.disable']()
|
||||
|
Loading…
Reference in New Issue
Block a user