The volume_snapshot call was missing the condition when to create a snapshot. Make the whole logic easier to follow with a $migration_snapshot boolean. Also get rid of the remote `pvesm free -snapshot` call by using import's new -delete-snapshot parameter.
42 KiB
Executable File
42 KiB
Executable File