Skip to content

Commit

Permalink
Fix formatting in zfs_send function for proxmox_vol comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
apprell committed Nov 9, 2024
1 parent df0df7c commit bbaa54e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxmox-autosnap.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def zfs_send(vmid: str, virtualization: str, zfs_send_to: str):
proxmox_vol = v.split(',')[0]
if (k == 'rootfs' or
(re.fullmatch('mp[0-9]+', k) and ('backup=1' in v)) or
(re.fullmatch('(ide|sata|scsi|virtio)[0-9]+', k) and ('backup=0' not in v) and proxmox_vol!="none") or
(re.fullmatch('(ide|sata|scsi|virtio)[0-9]+', k) and ('backup=0' not in v) and proxmox_vol != 'none') or
(re.fullmatch('(efidisk|tpmstate)[0-9]+', k))):

localzfs = get_zfs_volume(proxmox_vol, virtualization)
Expand Down

0 comments on commit bbaa54e

Please sign in to comment.