[elbe-devel] [PATCH] finetuning: check for true, when xs:boolean is required by schema

Manuel Traut manuel.traut at linutronix.de
Thu May 3 12:55:11 CEST 2018


On Fri, Apr 27, 2018 at 04:39:49PM +0200, Torben Hohn wrote:
> check for lowercase true and false respectively, because that is, what
> will get through the schema validation.
> 
> Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>

Reviewed-by: Manuel Traut <manut at linutronix.de>

..applied to devel/elbe-3.0

> ---
>  elbepack/finetuning.py | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/elbepack/finetuning.py b/elbepack/finetuning.py
> index 9e6970f2..3c86eb05 100644
> --- a/elbepack/finetuning.py
> +++ b/elbepack/finetuning.py
> @@ -264,13 +264,13 @@ class AddUserAction(FinetuningAction):
>                  options += '-g "%s" ' % att['gid']
>              if 'home' in att:
>                  options += '-d "%s" ' % att['home']
> -            if 'system' in att and att['system'] == 'True':
> +            if 'system' in att and att['system'] == 'true':
>                  options += '-r'
> -            if 'create_home' in att and att['create_home'] == 'False':
> +            if 'create_home' in att and att['create_home'] == 'false':
>                  options += '-M '
>              else:
>                  options += '-m '
> -            if 'create_group' in att and att['create_group'] == 'False':
> +            if 'create_group' in att and att['create_group'] == 'false':
>                  options += '-N '
>              else:
>                  options += '-U '
> -- 
> 2.11.0
> 
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel



More information about the elbe-devel mailing list