From c3fabca779baf827a0f99d4741a565c4c26dad4e Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Tue, 20 Aug 2013 10:39:33 +0200 Subject: [PATCH] suppress another warning about uninitialized value at boot time Signed-off-by: Dietmar Maurer --- Makefile | 2 +- data/PVE/Cluster.pm | 12 +++++++----- debian/changelog | 6 ++++++ 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index d8bac5f..43fcf8f 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ RELEASE=3.1 PACKAGE=pve-cluster PKGVER=3.0 -PKGREL=6 +PKGREL=7 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) diff --git a/data/PVE/Cluster.pm b/data/PVE/Cluster.pm index 82301ac..5ccd07f 100644 --- a/data/PVE/Cluster.pm +++ b/data/PVE/Cluster.pm @@ -589,11 +589,13 @@ sub rrd_dump { my $res = {}; - while ($raw =~ s/^(.*)\n//) { - my ($key, @ela) = split(/:/, $1); - next if !$key; - next if !(scalar(@ela) > 1); - $res->{$key} = \@ela; + if ($raw) { + while ($raw =~ s/^(.*)\n//) { + my ($key, @ela) = split(/:/, $1); + next if !$key; + next if !(scalar(@ela) > 1); + $res->{$key} = \@ela; + } } $last_rrd_dump = $ctime; diff --git a/debian/changelog b/debian/changelog index 42c7b39..fb474f4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +pve-cluster (3.0-7) unstable; urgency=low + + * suppress another warning about uninitialized value at boot time + + -- Proxmox Support Team Tue, 20 Aug 2013 10:39:18 +0200 + pve-cluster (3.0-6) unstable; urgency=low * avoid warning when adding a new node (can't create shared ssh key database...) -- 2.39.5