ReplicationTestEnv.pm: avoid warning about undefined value

This commit is contained in:
Dietmar Maurer 2017-05-23 10:31:18 +02:00
parent f27584525a
commit 62a162e74d

View File

@ -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";