Fix none type comparison

Change-Id: I5d571f59bcc8b013596447a19dc7422f6d6b7e8b
Closes-bug: #1751338
This commit is contained in:
Ryan Beisner 2018-02-23 12:57:08 -06:00
parent b81b0a85f7
commit a178745bb2
1 changed files with 1 additions and 1 deletions

View File

@ -437,7 +437,7 @@ class DesignateBindCharm(openstack_charm.OpenStackCharm):
cluster_relation.retrieve_local(CLUSTER_SYNC_KEY)))
request_time = request_times[0]
sync_time = DesignateBindCharm.get_sync_time()
if request_time and request_time > sync_time:
if request_time and sync_time and request_time > sync_time:
hookenv.log(('Request for sync sent but remote sync time is too'
' old, defering until a more up-to-date target is '
'available'),