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

Torben Hohn torben.hohn at linutronix.de
Fri Apr 27 16:39:49 CEST 2018


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>
---
 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




More information about the elbe-devel mailing list