]> git.proxmox.com Git - pve-zsync.git/commit
snapshot_destroy: make interface agnostic to source/dest
authorFabian Ebner <f.ebner@proxmox.com>
Tue, 11 May 2021 12:59:54 +0000 (14:59 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 25 May 2021 05:18:50 +0000 (07:18 +0200)
commit103f89134ff1600dc1ed0525fd6f6a91bd29af54
tree1f12dd830e669623f845306e9bbc05634d03c39d
parent3b115c28453021759c9aefedeecd2c0cdce3ac7e
snapshot_destroy: make interface agnostic to source/dest

Also drop the 'method' parameter which is not used consistently (e.g. ignored
in the later half of the very same function, in snapshot_exist, vm_exists,...),
and not documented. Simply rely on the presence of the IP address as is done in
many other places already.

In snapshot_add, there is no need to try and destroy the snapshot on the
destination (did happen previously, because $dest was passed along), because we
just failed to create the snapshot on the source side.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
pve-zsync