Update hacking version

Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: If1860c3fe287852e87704b511567c65d8d4d0c1c
This commit is contained in:
zhulingjie
2019-01-04 23:59:26 +08:00
parent 7dbd8ab34b
commit a4d31eac42
10 changed files with 31 additions and 31 deletions

View File

@@ -82,8 +82,8 @@ class APISchedulingService(scheduling.BackgroundSchedulerService):
def get_service_status(self, context, service_id):
service = objects.Service.get(context, service_id)
last_heartbeat = (service.last_seen_up or service.updated_at
or service.created_at)
last_heartbeat = (service.last_seen_up or service.updated_at or
service.created_at)
if isinstance(last_heartbeat, six.string_types):
# NOTE(russellb) If this service came in over rpc via
# conductor, then the timestamp will be a string and needs to be