Revision 7806f19d kamaki/cli/commands/pithos.py

b/kamaki/cli/commands/pithos.py
135 135
        if newvalue is None:
136 136
            self._value = self.default
137 137
            return
138
        (start, end) = newvalue.split('-')
139
        (start, end) = (int(start), int(end))
140
        self._value = '%s-%s' % (start, end)
138
        start, sep, end = newvalue.partition('-')
139
        if sep:
140
            if start:
141
                self._value = '%s-%s' % (int(start), int(end))
142
            else:
143
                self._value = '-%s' % int(end)
144
        else:
145
            self._value = '%s' % int(start)
141 146

  
142 147

  
143 148
# Command specs

Also available in: Unified diff