]> git.proxmox.com Git - pve-container.git/commitdiff
Make snapshot_save_vmstate proper sub
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 26 Feb 2016 08:19:43 +0000 (09:19 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 26 Feb 2016 09:32:16 +0000 (10:32 +0100)
src/PVE/LXC.pm

index dcec7754701a2146c7041f319e1d19d5a82e8551..24800407f2edf86204933c9f5c20bf1d5b1effc9 100644 (file)
@@ -1800,9 +1800,9 @@ my $snapshot_apply_config = sub {
     return $newconf;
 };
 
-my $snapshot_save_vmstate = sub {
+sub snapshot_save_vmstate {
     die "implement me - snapshot_save_vmstate\n";
-};
+}
 
 sub snapshot_prepare {
     my ($vmid, $snapname, $save_vmstate, $comment) = @_;
@@ -1832,7 +1832,7 @@ sub snapshot_prepare {
        $snap = $conf->{snapshots}->{$snapname} = {};
 
        if ($save_vmstate && check_running($vmid)) {
-           &$snapshot_save_vmstate($vmid, $conf, $snapname, $storecfg);
+           snapshot_save_vmstate($vmid, $conf, $snapname, $storecfg);
        }
 
        &$snapshot_copy_config($conf, $snap);