Commit a624a072 authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Accepte tilda as a character for a cloud name

Refs: #4126
parent 0962adb7
......@@ -48,7 +48,7 @@ except ImportError:
class InvalidCloudNameError(Error):
"""A valid cloud name is accepted by this regex: ([@#$:-\w]+)"""
"""A valid cloud name is accepted by this regex: ([~@#$:-\w]+)"""
log = getLogger(__name__)
......@@ -135,7 +135,7 @@ class Config(RawConfigParser):
def _cloud_name(full_section_name):
if not full_section_name.startswith(CLOUD_PREFIX + ' '):
return None
matcher = match(CLOUD_PREFIX + ' "([@#$:\-\w]+)"', full_section_name)
matcher = match(CLOUD_PREFIX + ' "([~@#$:\-\w]+)"', full_section_name)
if matcher:
return matcher.groups()[0]
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment