From 4f2318fcc3ba09cbe6140376c99a2e6c43e61bae Mon Sep 17 00:00:00 2001 From: unman Date: Fri, 25 Nov 2016 01:02:32 +0000 Subject: [PATCH] Fixed regexp for MAC address in qvm-prefs --- qvm-tools/qvm-prefs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qvm-tools/qvm-prefs b/qvm-tools/qvm-prefs index a8180754..2a86fc08 100755 --- a/qvm-tools/qvm-prefs +++ b/qvm-tools/qvm-prefs @@ -196,7 +196,7 @@ def set_mac(vms, vm, args): print >> sys.stderr, "Missing MAC argument!" return False - if not re.match("[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}|auto", args[0]): + if not re.match("[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}$|auto$", args[0]): print >> sys.stderr, "Invalid MAC argument!" print >> sys.stderr, "Possible values:" print >> sys.stderr, "1) auto"