bundles/zfs: fix compatibility to older zfs versions
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2022-03-13 12:58:07 +01:00
parent 8397739634
commit 28b235514a
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -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()