Revision 466636c9 kamaki/cli/commands/config.py
b/kamaki/cli/commands/config.py | ||
---|---|---|
129 | 129 |
section, sep, key = option.rpartition('.') |
130 | 130 |
prefix = 'cloud.' |
131 | 131 |
if section.startswith(prefix): |
132 |
self.config.set_cloud(section[len(prefix):], key, value) |
|
132 |
cloudname = section[len(prefix):] |
|
133 |
if cloudname: |
|
134 |
self.config.set_cloud(cloudname, key, value) |
|
135 |
else: |
|
136 |
raise CLISyntaxError( |
|
137 |
'Empty cloud alias (%s)' % option, importance=2) |
|
133 | 138 |
elif section in ('cloud',): |
134 | 139 |
raise CLISyntaxError( |
135 | 140 |
'Invalid syntax for cloud definition', importance=2, details=[ |
Also available in: Unified diff