From ee0719db894b7d2aaa6e6a7e3f97d477dd8dca4f Mon Sep 17 00:00:00 2001 From: Nikos Skalkotos Date: Thu, 25 Apr 2013 16:39:07 +0300 Subject: [PATCH] Support kamaki 0.8 In kamaki 0.8 `store' command is replaced with `file' and `astakos' is replaced with `user'. --- image_creator/kamaki_wrapper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/image_creator/kamaki_wrapper.py b/image_creator/kamaki_wrapper.py index 654a933..3f809d0 100644 --- a/image_creator/kamaki_wrapper.py +++ b/image_creator/kamaki_wrapper.py @@ -61,7 +61,7 @@ class Kamaki(object): def get_account(token): """Return the account corresponding to this token""" config = Config() - astakos = AstakosClient(config.get('astakos', 'url'), token) + astakos = AstakosClient(config.get('user', 'url'), token) try: account = astakos.info() except ClientError as e: @@ -78,7 +78,7 @@ class Kamaki(object): config = Config() - pithos_url = config.get('store', 'url') + pithos_url = config.get('file', 'url') self.pithos_client = PithosClient( pithos_url, self.account['auth_token'], self.account['uuid'], self.CONTAINER) -- 1.7.10.4