git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r2lab is migrating from a previous depl. based on omf_sfa
[plcapi.git]
/
PLC
/
Methods
/
AddSlice.py
diff --git
a/PLC/Methods/AddSlice.py
b/PLC/Methods/AddSlice.py
index
0d6c1c6
..
51918f4
100644
(file)
--- a/
PLC/Methods/AddSlice.py
+++ b/
PLC/Methods/AddSlice.py
@@
-63,7
+63,7
@@
class AddSlice(Method):
# 3. Then single underscore after login_base.
# 4. Then letters, numbers, or underscores.
name = slice_fields['name']
# 3. Then single underscore after login_base.
# 4. Then letters, numbers, or underscores.
name = slice_fields['name']
- good_name = r'^[a-z0-9
]+_[a-zA-Z0-9_
]+$'
+ good_name = r'^[a-z0-9
\.]+_[a-zA-Z0-9_\.
]+$'
if not name or \
not re.match(good_name, name):
raise PLCInvalidArgument, "Invalid slice name"
if not name or \
not re.match(good_name, name):
raise PLCInvalidArgument, "Invalid slice name"