Browse Source

missing return statement

master
root 5 years ago
parent
commit
4660a8cba7
  1. 5
      zfs-snapshot-backup.py

5
zfs-snapshot-backup.py

@ -64,9 +64,10 @@ def list_remote_backups(members):
try: try:
backups = clean_split(remote_call(["ls", remote_sub_dir])) backups = clean_split(remote_call(["ls", remote_sub_dir]))
result[member] = set(backups) result[member] = set(backups)
except CalledProcessError: except subprocess.CalledProcessError:
remote_call(["mkdir", remote_sub_dir]) remote_call(["mkdir", remote_sub_dir])
result[member] = set() result[member] = set()
return result
def backup_latest_snapshot(member, elab_snapshots, existing_backups): def backup_latest_snapshot(member, elab_snapshots, existing_backups):
@ -125,4 +126,4 @@ def create_backups():
if __name__ == "__main__": if __name__ == "__main__":
es = elab_snapshots() es = elab_snapshots()
print(list_remote_backups(es.keys()) print(list_remote_backups(es.keys()))

Loading…
Cancel
Save