Revision 385780c3 kamaki/cli/config.py
b/kamaki/cli/config.py | ||
---|---|---|
48 | 48 |
|
49 | 49 |
|
50 | 50 |
class InvalidCloudNameError(Error): |
51 |
"""A valid cloud name is accepted by this regex: ([@#$:-\w]+)""" |
|
51 |
"""A valid cloud name is accepted by this regex: ([~@#$:-\w]+)"""
|
|
52 | 52 |
|
53 | 53 |
|
54 | 54 |
log = getLogger(__name__) |
... | ... | |
135 | 135 |
def _cloud_name(full_section_name): |
136 | 136 |
if not full_section_name.startswith(CLOUD_PREFIX + ' '): |
137 | 137 |
return None |
138 |
matcher = match(CLOUD_PREFIX + ' "([@#$:\-\w]+)"', full_section_name) |
|
138 |
matcher = match(CLOUD_PREFIX + ' "([~@#$:\-\w]+)"', full_section_name)
|
|
139 | 139 |
if matcher: |
140 | 140 |
return matcher.groups()[0] |
141 | 141 |
else: |
Also available in: Unified diff