On Mon, Feb 24, 2014 at 2:31 PM, Klaus Aehlig <[email protected]> wrote:
> The NIC's network and vlan are also newly added, hence need to be
> considered optional to remain backwards compatible.
>
> Signed-off-by: Klaus Aehlig <[email protected]>
> ---
>  lib/objects.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/objects.py b/lib/objects.py
> index 8b38e81..396f6a2 100644
> --- a/lib/objects.py
> +++ b/lib/objects.py
> @@ -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
> --
> 1.9.0.rc1.175.g0b1dcb5
>

LGTM, thanks.

Michele

-- 
Google Germany GmbH
Dienerstr. 12
80331 München

Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Graham Law, Christine Elizabeth Flores

Reply via email to