projects
/
snf-image-creator
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Extend the allowed cloud name characters
[snf-image-creator]
/
image_creator
/
kamaki_wrapper.py
diff --git
a/image_creator/kamaki_wrapper.py
b/image_creator/kamaki_wrapper.py
index
c515fa6
..
3669526
100644
(file)
--- a/
image_creator/kamaki_wrapper.py
+++ b/
image_creator/kamaki_wrapper.py
@@
-38,6
+38,8
@@
The library is used to upload images to and register them with a Synnefo
deployment.
"""
deployment.
"""
+import sys
+
from os.path import basename
from kamaki.cli.config import Config
from os.path import basename
from kamaki.cli.config import Config
@@
-46,8
+48,11
@@
from kamaki.clients.image import ImageClient
from kamaki.clients.pithos import PithosClient
from kamaki.clients.astakos import AstakosClient
from kamaki.clients.pithos import PithosClient
from kamaki.clients.astakos import AstakosClient
-
-config = Config()
+try:
+ config = Config()
+except Exception as e:
+ sys.stderr.write("Kamaki config error: %s\n" % str(e))
+ sys.exit(1)
class Kamaki(object):
class Kamaki(object):