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
a624a072
Commit
a624a072
authored
Jul 15, 2013
by
Stavros Sachtouris
Browse files
Accepte tilda as a character for a cloud name
Refs: #4126
parent
0962adb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
kamaki/cli/config.py
View file @
a624a072
...
...
@@ -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
:
...
...
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