Revision 466636c9

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=[
b/kamaki/cli/commands/image.py
803 803
@command(image_cmds)
804 804
class image_compute_properties_set(_init_cyclades, _optional_json):
805 805
    """Add / update a set of properties for an image
806
    proeprties must be given in the form key=value, e.v.
806
    properties must be given in the form key=value, e.v.
807 807
    /image compute properties set <image-id> key1=val1 key2=val2
808 808
    """
809 809

  

Also available in: Unified diff