"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "zaqar/storage/swift/driver.py" between
zaqar-9.0.0.tar.gz and zaqar-10.0.0.tar.gz

About: OpenStack Zaqar is a multi-tenant cloud messaging and notification service for web and mobile developers.
The "Ussuri" series (latest release).

driver.py  (zaqar-9.0.0):driver.py  (zaqar-10.0.0)
skipping to change at line 57 skipping to change at line 57
) )
@decorators.lazy_property(write=False) @decorators.lazy_property(write=False)
def connection(self): def connection(self):
return _ClientWrapper(self.swift_conf) return _ClientWrapper(self.swift_conf)
def is_alive(self): def is_alive(self):
try: try:
self.connection.get_capabilities() self.connection.get_capabilities()
return True return True
except Exception as e: except Exception:
LOG.exception(e) LOG.exception('Aliveness check failed:')
return False return False
@decorators.lazy_property(write=False) @decorators.lazy_property(write=False)
def message_controller(self): def message_controller(self):
controller = controllers.MessageController(self) controller = controllers.MessageController(self)
if (self.conf.profiler.enabled and if (self.conf.profiler.enabled and
self.conf.profiler.trace_message_store): self.conf.profiler.trace_message_store):
return profiler.trace_cls("swift_message_controller")(controller) return profiler.trace_cls("swift_message_controller")(controller)
else: else:
return controller return controller
 End of changes. 1 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)