return changes when test=True

This commit is contained in:
Andreas Lutro 2016-02-07 08:19:48 +01:00
parent 95c8e74b72
commit 2313747958

View File

@ -77,6 +77,7 @@ def present(name):
if __opts__['test']:
ret['result'] = None
ret['comment'] = 'Creating VHost {0}'.format(name)
ret['changes'] = {'old': '', 'new': name}
return ret
result = __salt__['rabbitmq.add_vhost'](name)