[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [PATCH rhel6-branch] (take II) Fix default of network --device option to match rhel5 (#647462).



> diff --git a/network.py b/network.py
> index 5b1ebb9..cf1d5e9 100644
> --- a/network.py
> +++ b/network.py
> @@ -365,15 +365,22 @@ class Network:
>  
>          ksdevice = flags.cmdline.get('ksdevice', None)
>          if ksdevice:
> +            if ksdevice == 'bootif':
> +                bootif_mac = ":".join(flags.cmdline.get('BOOTIF')[3:].split("-")).upper()

ACK, but if you wanted to be less fancy, you could:

bootif_mac = flags.cmdline.get("BOOTIF")[3:].replace("-", ":").upper()

- Chris


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]