Commit ad55b2d4 authored by Klaus Aehlig's avatar Klaus Aehlig

Fix expression describing optional parameters

The NIC's network and vlan are also newly added, hence need to be
considered optional to remain backwards compatible.
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
parent e6e17529
......@@ -2190,7 +2190,7 @@ class SerializableConfigParser(ConfigParser.SafeConfigParser, object):
if value.lower() == constants.VALUE_NONE:
value = None
except ConfigParser.NoOptionError:
r = re.compile(r"(disk|nic)\d+_name")
r = re.compile(r"(disk|nic)\d+_name|nic\d+_(network|vlan)")
match = r.match(option)
if match:
pass
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment