commit 6936adfd18e745c8ac8fe013e7cb188ab894ef09
Author: Ondrej Lichtner <olichtne(a)redhat.com>
Date: Mon Sep 10 16:36:59 2012 +0200
Config: bug fix for mac range verification
I made a small mistake in verification of mac range.
This commit fixes that.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
Common/Config.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/Common/Config.py b/Common/Config.py
index 8ef2452..4b02a54 100644
--- a/Common/Config.py
+++ b/Common/Config.py
@@ -104,7 +104,10 @@ class Config():
msg = "Option mac_pool_range expects 2"\
" values sepparated by whitespaces."
raise ConfigError(msg)
- if not verify_mac_address(option):
- msg = "Invalid MAC address: %s" % option
+ if not verify_mac_address(vals[0]):
+ msg = "Invalid MAC address: %s" % vals[0]
+ raise ConfigError(msg)
+ if not verify_mac_address(vals[1]):
+ msg = "Invalid MAC address: %s" % vals[1]
raise ConfigError(msg)
return vals
Show replies by date