--- pve-zsync | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pve-zsync b/pve-zsync index c23bc4b..216057b 100644 --- a/pve-zsync +++ b/pve-zsync @@ -77,7 +77,7 @@ sub get_status { return undef; } -sub check_pool_exsits { +sub check_pool_exists { my ($target) = @_; my $cmd = ''; @@ -436,9 +436,9 @@ sub init { run_cmd("ssh-copy-id -i /root/.ssh/id_rsa.pub root\@$ip"); } - die "Pool $dest->{all} does not exists\n" if check_pool_exsits($dest); + die "Pool $dest->{all} does not exists\n" if check_pool_exists($dest); - my $check = check_pool_exsits($source->{path}, $source->{ip}) if !$source->{vmid} && $source->{path}; + my $check = check_pool_exists($source->{path}, $source->{ip}) if !$source->{vmid} && $source->{path}; die "Pool $source->{path} does not exists\n" if undef($check); -- 2.1.4
_______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel