mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +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
|
||||
}
|
||||
|
||||
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,
|
||||
sfn='',
|
||||
ret=ret,
|
||||
|
Loading…
Reference in New Issue
Block a user