mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Removing extra spaces
This commit is contained in:
parent
9d6a33f257
commit
aa2f9906e0
@ -363,14 +363,14 @@ def create_snapshot(config='root', snapshot_type='single', pre_number=None,
|
||||
cleanup_algorithm
|
||||
Set the cleanup algorithm for the snapshot.
|
||||
|
||||
number
|
||||
Deletes old snapshots when a certain number of snapshots
|
||||
is reached.
|
||||
timeline
|
||||
Deletes old snapshots but keeps a number of hourly,
|
||||
daily, weekly, monthly and yearly snapshots.
|
||||
empty-pre-post
|
||||
Deletes pre/post snapshot pairs with empty diffs.
|
||||
number
|
||||
Deletes old snapshots when a certain number of snapshots
|
||||
is reached.
|
||||
timeline
|
||||
Deletes old snapshots but keeps a number of hourly,
|
||||
daily, weekly, monthly and yearly snapshots.
|
||||
empty-pre-post
|
||||
Deletes pre/post snapshot pairs with empty diffs.
|
||||
userdata
|
||||
Set userdata for the snapshot (key-value pairs).
|
||||
|
||||
@ -491,7 +491,7 @@ def modify_snapshot(snapshot_id=None,
|
||||
|
||||
snapshot = get_snapshot(config=config, number=snapshot_id)
|
||||
try:
|
||||
# Updating only the explicitely provided attributes by the user
|
||||
# Updating only the explicitely provided attributes by the user
|
||||
updated_opts = {
|
||||
'description': description if description != None else snapshot['description'],
|
||||
'cleanup': cleanup if cleanup != None else snapshot['cleanup'],
|
||||
|
Loading…
Reference in New Issue
Block a user