Commit 7b84d236 authored by Ilias Tsitsimpis's avatar Ilias Tsitsimpis

ci: kamaki config.get_global method is deprecated

Use the newer config.get("global", ..) syntax.
Fallback to the old one for older version of kamaki.
parent 2622b117
......@@ -185,7 +185,11 @@ class SynnefoCI(object):
config = kamaki_config.Config()
if self.kamaki_cloud is None:
self.kamaki_cloud = config.get_global("default_cloud")
try:
self.kamaki_cloud = config.get("global", "default_cloud")
except AttributeError:
# Compatibility with kamaki version <=0.10
self.kamaki_cloud = config.get_global("default_cloud")
self.logger.info("Setup kamaki client, using cloud '%s'.." %
self.kamaki_cloud)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment