Commit 8469c1ac authored by Dietmar Maurer's avatar Dietmar Maurer

fix bug #719: vzdump - only call cleanup after prepare

parent 9efa2ea7
...@@ -1068,8 +1068,11 @@ sub exec_backup_task { ...@@ -1068,8 +1068,11 @@ sub exec_backup_task {
warn $@ if $@; warn $@ if $@;
} }
eval { $plugin->cleanup ($task, $vmid) }; if (defined($task->{mode})) {
warn $@ if $@; # only call cleanup when necessary (when prepare was executed)
eval { $plugin->cleanup ($task, $vmid) };
warn $@ if $@;
}
eval { $plugin->set_logfd (undef); }; eval { $plugin->set_logfd (undef); };
warn $@ if $@; warn $@ if $@;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment