mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Adding ability to do a test run with test=True. #18966
This commit is contained in:
parent
7c471ef13f
commit
ead0c5184b
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user