Mercurial > hg > Applications > virsh-wrapper
changeset 10:0740e88a783b
fix pattern match
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 13 Nov 2012 22:12:08 +0900 |
parents | ea51e779b381 |
children | 422041acef4c |
files | newvm.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/newvm.py Tue Nov 13 16:35:34 2012 +0900 +++ b/newvm.py Tue Nov 13 22:12:08 2012 +0900 @@ -12,9 +12,9 @@ # vm_name should be # students/e10/e105730/01 # teachers/kono/01 -# +# bad name returns 1 def ie_check_name(name): - m=re.match('^students/e(\d\d)/e(\d\d57)\d\d/0[1-4]$',name) + m=re.match('^students/e(\d\d)/e(\d\d)57\d\d/0[1-4]$',name) if m is not None: if m.group(1)==m.group(2): return 0