From 6cc5bf8eb91c4a3fbbeca4bb5aa1d5b9887abced Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabian=20Gr=C3=BCnbichler?= Date: Wed, 9 Mar 2016 12:39:55 +0100 Subject: [PATCH] Fix variable name 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.39.2