Adding ability to do a test run with test=True. #18966

This commit is contained in:
Nitin Madhok 2014-12-16 05:02:37 -05:00
parent 7c471ef13f
commit ead0c5184b

View File

@ -3937,6 +3937,13 @@ def serialize(name,
'result': False 'result': False
} }
if __opts__['test']:
ret['comment'] = (
'Dataset will be serialized and stored into {0}'
).format(name)
ret['result'] = None
return ret
return __salt__['file.manage_file'](name=name, return __salt__['file.manage_file'](name=name,
sfn='', sfn='',
ret=ret, ret=ret,