[PATCH rhel7-branch] Fix unused variable name pylint doesn't like (#804511)

Martin Kolman mkolman at redhat.com
Mon Sep 29 13:24:29 UTC 2014


On Mon, 2014-09-29 at 15:23 +0200, Radek Vykydal wrote:
> Related: rhbz#804511
> ---
>  pyanaconda/nm.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/pyanaconda/nm.py b/pyanaconda/nm.py
> index c56f610..64b045e 100644
> --- a/pyanaconda/nm.py
> +++ b/pyanaconda/nm.py
> @@ -511,7 +511,7 @@ def _device_settings(name):
>          settings = _find_settings(name, 'vlan', 'interface-name')
>          if not settings:
>              # connections generated by NM from iBFT
> -            parent, _sep, vlanid = name.partition(".")
> +            _parent, _sep, vlanid = name.partition(".")
>              settings = _find_settings(int(vlanid), 'vlan', 'id')
>      else:
>          settings = _find_settings(name, 'connection', 'interface-name')
ACK!



More information about the anaconda-patches mailing list