]> git.proxmox.com Git - pve-zsync.git/commitdiff
Fix variable name
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 9 Mar 2016 11:39:55 +0000 (12:39 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 9 Mar 2016 13:43:58 +0000 (14:43 +0100)
Since $param->{vmid} is never set, this check could not
trigger! using the correct $source->{vmid} works as expected

pve-zsync

index 5fecbc2883abfd2fd697ab3ad6ff712a3f733096..212ada9e35d7f6e8818343a0e0fdf6159629098e 100644 (file)
--- a/pve-zsync
+++ b/pve-zsync
@@ -484,7 +484,7 @@ sub init {
     $job->{vm_type} = $vm_type;
     $source->{vm_type} = $vm_type;
 
-    die "VM $source->{vmid} doesn't exist\n" if $param->{vmid} && !$vm_type;
+    die "VM $source->{vmid} doesn't exist\n" if $source->{vmid} && !$vm_type;
 
     die "Config already exists\n" if $cfg->{$job->{source}}->{$job->{name}};