projects
/
snf-image-creator
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update image properties help page
[snf-image-creator]
/
image_creator
/
kamaki_wrapper.py
diff --git
a/image_creator/kamaki_wrapper.py
b/image_creator/kamaki_wrapper.py
index
768e6b3
..
3e34095
100644
(file)
--- a/
image_creator/kamaki_wrapper.py
+++ b/
image_creator/kamaki_wrapper.py
@@
-46,12
+46,14
@@
CONTAINER = "images"
class Kamaki(object):
@staticmethod
class Kamaki(object):
@staticmethod
- def saved_credentials():
+ def get_account():
config = Config()
config = Config()
- account = config.get('storage', 'account')
- token = config.get('global', 'token')
+ return config.get('storage', 'account')
- return (account, token)
+ @staticmethod
+ def get_token():
+ config = Config()
+ return config.get('global', 'token')
@staticmethod
def save_account(account):
@staticmethod
def save_account(account):