[pve-devel] [PATCH pve-zsync 2/2] Fix variable name

Fabian Grünbichler f.gruenbichler at proxmox.com
Wed Mar 9 12:39:55 CET 2016


Since $param->{vmid} is never set, this check could not
trigger! using the correct $source->{vmid} works as expected
---
 pve-zsync | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pve-zsync b/pve-zsync
index 5fecbc2..212ada9 100644
--- 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}};
 
-- 
2.1.4





More information about the pve-devel mailing list