From 82cecf2620ae49de6db52b6a49c6e907f6fae5f3 Mon Sep 17 00:00:00 2001 From: Rene Krenn Date: Fri, 24 Jan 2020 13:18:35 +0100 Subject: [PATCH] TT#74809 ignore ghost registrations Change-Id: Ibcf8973cd8cd50c4f3def9ddabcf79afd8e58b2b (cherry picked from commit 29d028392687edf3d284a74a67781e15d992613d) --- lib/NGCP/Panel/Utils/RedisLocationResultSet.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/NGCP/Panel/Utils/RedisLocationResultSet.pm b/lib/NGCP/Panel/Utils/RedisLocationResultSet.pm index 42520cb421..73a5baba75 100644 --- a/lib/NGCP/Panel/Utils/RedisLocationResultSet.pm +++ b/lib/NGCP/Panel/Utils/RedisLocationResultSet.pm @@ -177,6 +177,7 @@ sub _rows_from_mapkey { foreach my $key (@{ $keys }) { my %entry = $self->_redis->hgetall($key); $entry{id} = $entry{ruid}; + next unless $entry{id}; # deflate expires column if ($entry{expires}) { $entry{expires} = strftime("%Y-%m-%d %H:%M:%S", localtime($entry{expires}));