py3: Fix swift-recon

Avoid things like

    TypeError: '<' not supported between instances of 'NoneType' and 'int'

Change-Id: I82edbf1ddcc28f86e97405d21db0b96249412eac
This commit is contained in:
Tim Burke 2019-10-14 11:40:03 -07:00
parent 29d46ca9f6
commit 2edcd0b7b9
1 changed files with 2 additions and 0 deletions

View File

@ -459,6 +459,8 @@ class SwiftRecon(object):
stats[stat_key].append(repl_stats.get(stat_key))
last = response.get('replication_last',
response.get('object_replication_last', 0))
if last is None:
continue
if last < least_recent_time:
least_recent_time = last
least_recent_url = url