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
kamaki
Commits
466636c9
Commit
466636c9
authored
Aug 23, 2013
by
Stavros Sachtouris
Browse files
Fix bug when setting an empty cloud alias
parent
fc48b144
Changes
2
Hide whitespace changes
Inline
Side-by-side
kamaki/cli/commands/config.py
View file @
466636c9
...
...
@@ -129,7 +129,12 @@ class config_set(_command_init):
section
,
sep
,
key
=
option
.
rpartition
(
'.'
)
prefix
=
'cloud.'
if
section
.
startswith
(
prefix
):
self
.
config
.
set_cloud
(
section
[
len
(
prefix
):],
key
,
value
)
cloudname
=
section
[
len
(
prefix
):]
if
cloudname
:
self
.
config
.
set_cloud
(
cloudname
,
key
,
value
)
else
:
raise
CLISyntaxError
(
'Empty cloud alias (%s)'
%
option
,
importance
=
2
)
elif
section
in
(
'cloud'
,):
raise
CLISyntaxError
(
'Invalid syntax for cloud definition'
,
importance
=
2
,
details
=
[
...
...
kamaki/cli/commands/image.py
View file @
466636c9
...
...
@@ -803,7 +803,7 @@ class image_compute_properties_add(_init_cyclades, _optional_json):
@
command
(
image_cmds
)
class
image_compute_properties_set
(
_init_cyclades
,
_optional_json
):
"""Add / update a set of properties for an image
pro
e
prties must be given in the form key=value, e.v.
prop
e
rties must be given in the form key=value, e.v.
/image compute properties set <image-id> key1=val1 key2=val2
"""
...
...
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