[pve-devel] [PATCH v3 pve-manager 18/23] ReplicationTestEnv.pm: avoid warning about undefined value
Dietmar Maurer
dietmar at proxmox.com
Tue May 30 15:20:15 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