[anaconda][rhel7-branch][PATCH] Don't try to concatenate a list with a string

Vratislav Podzimek vpodzime at redhat.com
Tue Sep 8 13:19:24 UTC 2015


On Tue, 2015-09-08 at 14:36 +0200, Martin Kolman wrote:
> Related: rhbz#1252444
> Signed-off-by: Martin Kolman <mkolman at redhat.com>
> ---
>  pyanaconda/kickstart.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
> index b9d47d8..e3f956a 100644
> --- a/pyanaconda/kickstart.py
> +++ b/pyanaconda/kickstart.py
> @@ -708,9 +708,9 @@ class Firstboot(commands.firstboot.FC3_Firstboot):
>          if self.firstboot == FIRSTBOOT_SKIP:
>              action = "disable"
>  
> +        # enable/disable all installed Initial Setup services
>          for service in services:
> -            # enable/disable all installed Initial Setup services
> -            iutil.execInSysroot("systemctl", [action] + service)
> +            iutil.execInSysroot("systemctl", [action, service])
And this is how Python wins the "Won't do what you expect me to"
prize...

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list