Return proper results for 'test=True'

This commit is contained in:
Elias Probst 2014-05-15 09:24:00 +02:00
parent e91be299fc
commit e0091310ff

View File

@ -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']()