[pve-devel] [PATCH v2 pve-manager 18/22] ReplicationTestEnv.pm: avoid warning about undefined value
Dietmar Maurer
dietmar at proxmox.com
Mon May 29 11:30:02 CEST 2017
Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
---
bin/test/ReplicationTestEnv.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/test/ReplicationTestEnv.pm b/bin/test/ReplicationTestEnv.pm
index 1a8363c2..fffe3cd6 100755
--- a/bin/test/ReplicationTestEnv.pm
+++ b/bin/test/ReplicationTestEnv.pm
@@ -312,7 +312,7 @@ sub track_jobs {
my $changes = '';
foreach my $k (qw(last_try last_sync fail_count error)) {
if (($oldstate->{$k} // '') ne ($state->{$k} // '')) {
- my $value = $state->{$k};
+ my $value = $state->{$k} // '';
chomp $value;
$changes .= ', ' if $changes;
$changes .= "$k => $value";
--
2.11.0
More information about the pve-devel
mailing list