bundles/zfs: fix compatibility to older zfs versions
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
8397739634
commit
28b235514a
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ def list_datasets():
|
||||||
|
|
||||||
|
|
||||||
def get_filtered_snapshots_for_dataset(ds):
|
def get_filtered_snapshots_for_dataset(ds):
|
||||||
all_snapshots = check_output(['zfs', 'list', '-H', '-o', 'name', '-t', 'snapshot', ds]).decode('UTF-8').splitlines()
|
all_snapshots = check_output(['zfs', 'list', '-H', '-o', 'name', '-t', 'snapshot']).decode('UTF-8').splitlines()
|
||||||
|
|
||||||
prefix = '{}@zfs-auto-snap_{}-'.format(ds, label)
|
prefix = '{}@zfs-auto-snap_{}-'.format(ds, label)
|
||||||
snapshots = set()
|
snapshots = set()
|
||||||
|
|
Loading…
Reference in a new issue