Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-image-creator
Commits
ee0719db
Commit
ee0719db
authored
Apr 25, 2013
by
Nikos Skalkotos
Browse files
Support kamaki 0.8
In kamaki 0.8 `store' command is replaced with `file' and `astakos' is replaced with `user'.
parent
80411610
Changes
1
Show whitespace changes
Inline
Side-by-side
image_creator/kamaki_wrapper.py
View file @
ee0719db
...
...
@@ -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
(
'
stor
e'
,
'url'
)
pithos_url
=
config
.
get
(
'
fil
e'
,
'url'
)
self
.
pithos_client
=
PithosClient
(
pithos_url
,
self
.
account
[
'auth_token'
],
self
.
account
[
'uuid'
],
self
.
CONTAINER
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment