[RHEL 7.2 - PATCH] Fix GRUB2 Password Update Scope (#985962)

Brian C. Lane bcl at redhat.com
Tue Jul 7 18:08:35 UTC 2015


On Tue, Jul 07, 2015 at 02:05:36PM -0400, Robert Marshall wrote:
> Change scoping of variable to resolve issue in unit test.
> 
> Resolves: rhbz#985962
> ---
>  pyanaconda/bootloader.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
> index bdebb2e..510ab07 100644
> --- a/pyanaconda/bootloader.py
> +++ b/pyanaconda/bootloader.py
> @@ -1528,7 +1528,7 @@ class GRUB2(GRUB):
>          if not self.password and not self.encrypted_password:
>              return
>  
> -        users_file = "%s%s/%s" % (iutil.getSysroot(), self.config_dir, _passwd_file)
> +        users_file = "%s%s/%s" % (iutil.getSysroot(), self.config_dir, self._passwd_file)
>          header = open(users_file, "w")
>          # XXX FIXME: document somewhere that the username is "root"
>          self._encrypt_password()
> -- 
> 1.8.3.1

Ack

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)


More information about the anaconda-patches mailing list