mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Fixes pre/post snapshot order to get the inverse status
This commit is contained in:
parent
68d5475c1f
commit
1e6ba45db4
@ -180,7 +180,7 @@ def baseline_snapshot(name, number=None, tag=None, include_diff=True, config='ro
|
|||||||
number = snapshot['id']
|
number = snapshot['id']
|
||||||
|
|
||||||
status = __salt__['snapper.status'](
|
status = __salt__['snapper.status'](
|
||||||
config, num_pre=number, num_post=0)
|
config, num_pre=0, num_post=number)
|
||||||
|
|
||||||
for target in ignore:
|
for target in ignore:
|
||||||
if os.path.isfile(target):
|
if os.path.isfile(target):
|
||||||
|
Loading…
Reference in New Issue
Block a user