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

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
Reference in New Issue
openstack/swift
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.