Revision c22183b9 kamaki/cli/config/__init__.py
b/kamaki/cli/config/__init__.py | ||
---|---|---|
291 | 291 |
|
292 | 292 |
:raises KeyError: if cloud or cloud's option does not exist |
293 | 293 |
""" |
294 |
r = self.get(CLOUD_PREFIX, cloud) |
|
294 |
r = self.get(CLOUD_PREFIX, cloud) if cloud else None
|
|
295 | 295 |
if not r: |
296 | 296 |
raise KeyError('Cloud "%s" does not exist' % cloud) |
297 | 297 |
return r[option] |
Also available in: Unified diff