diff --git a/src/rougail/output_display/display.py b/src/rougail/output_display/display.py index 263069bf..e7d8e0fc 100644 --- a/src/rougail/output_display/display.py +++ b/src/rougail/output_display/display.py @@ -1,7 +1,7 @@ """ Silique (https://www.silique.fr) Copyright (C) 2022-2026 - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your @@ -289,8 +289,9 @@ class Node: else: true_default = is_default and meta_option.owner.get() == default_owner added = not is_default or true_default + secret_manager = option.information.get('secret_manager', False) while True: - if values and true_default and value in [None, []]: + if values and true_default and (value in [None, []] or secret_manager): break if isinstance(value, list): value = [self.convert_value(meta_option, val) for val in value] diff --git a/tests/errors6-results/display.gitlab.md b/tests/errors6-results/display.gitlab.md index 262f06b5..1c2054ca 100644 --- a/tests/errors6-results/display.gitlab.md +++ b/tests/errors6-results/display.gitlab.md @@ -1,4 +1,4 @@ > [!CAUTION] > > - cannot load variable path "dynVal3.val", the identifier "Val3" is not valid in fake user data -> - variable or family "dynVal3" does not exist, it has been loading from fake user data +> - variable or family "dynVal3" does not exist so cannot load "dynVal3.val, it has been loading from fake user data diff --git a/tests/errors6-results/display.md b/tests/errors6-results/display.md index 262f06b5..1c2054ca 100644 --- a/tests/errors6-results/display.md +++ b/tests/errors6-results/display.md @@ -1,4 +1,4 @@ > [!CAUTION] > > - cannot load variable path "dynVal3.val", the identifier "Val3" is not valid in fake user data -> - variable or family "dynVal3" does not exist, it has been loading from fake user data +> - variable or family "dynVal3" does not exist so cannot load "dynVal3.val, it has been loading from fake user data diff --git a/tests/errors6-results/display.sh b/tests/errors6-results/display.sh index 7963d755..d2161d73 100644 --- a/tests/errors6-results/display.sh +++ b/tests/errors6-results/display.sh @@ -1,3 +1,3 @@ 🛑 Caution ┣━━ cannot load variable path "dynVal3.val", the identifier "Val3" is not valid in fake user data -┗━━ variable or family "dynVal3" does not exist, it has been loading from fake user data +┗━━ variable or family "dynVal3" does not exist so cannot load "dynVal3.val, it has been loading from fake user data diff --git a/tests/errors8-results/display.gitlab.md b/tests/errors8-results/display.gitlab.md index 132fc3cb..f25f8dee 100644 --- a/tests/errors8-results/display.gitlab.md +++ b/tests/errors8-results/display.gitlab.md @@ -1,3 +1,3 @@ > [!CAUTION] > -> - variable or family "dyn{{ identifier }}.var" does not exist, it has been loading from fake user data +> - A dynamic with val2: :stop_sign: [- variable or family "var" does not exist so cannot load "dyn{{ identifier }}.var, it has been loading from fake user data -] diff --git a/tests/errors8-results/display.md b/tests/errors8-results/display.md index 132fc3cb..bee84840 100644 --- a/tests/errors8-results/display.md +++ b/tests/errors8-results/display.md @@ -1,3 +1,3 @@ > [!CAUTION] > -> - variable or family "dyn{{ identifier }}.var" does not exist, it has been loading from fake user data +> - A dynamic with val2: :stop_sign: variable or family "var" does not exist so cannot load "dyn{{ identifier }}.var, it has been loading from fake user data diff --git a/tests/errors8-results/display.sh b/tests/errors8-results/display.sh index 0a395a6b..7b67e0e2 100644 --- a/tests/errors8-results/display.sh +++ b/tests/errors8-results/display.sh @@ -1,2 +1,2 @@ 🛑 Caution -┗━━ variable or family "dyn{{ identifier }}.var" does not exist, it has been loading from fake user data +┗━━ A dynamic with val2: 🛑 variable or family "var" does not exist so cannot load "dyn{{ identifier }}.var, it has been loading from fake user data diff --git a/tests/results/test/04_5disabled_calculation_variable11.gitlab.md b/tests/results/test/04_5disabled_calculation_variable11.gitlab.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test/04_5disabled_calculation_variable11.md b/tests/results/test/04_5disabled_calculation_variable11.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test/04_5disabled_calculation_variable11.sh b/tests/results/test/04_5disabled_calculation_variable11.sh new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_mandatory/04_5disabled_calculation_variable11.gitlab.md b/tests/results/test_mandatory/04_5disabled_calculation_variable11.gitlab.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_mandatory/04_5disabled_calculation_variable11.md b/tests/results/test_mandatory/04_5disabled_calculation_variable11.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_mandatory/04_5disabled_calculation_variable11.sh b/tests/results/test_mandatory/04_5disabled_calculation_variable11.sh new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_mandatory_secrets/04_5disabled_calculation_variable11.gitlab.md b/tests/results/test_mandatory_secrets/04_5disabled_calculation_variable11.gitlab.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_mandatory_secrets/04_5disabled_calculation_variable11.md b/tests/results/test_mandatory_secrets/04_5disabled_calculation_variable11.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_mandatory_secrets/04_5disabled_calculation_variable11.sh b/tests/results/test_mandatory_secrets/04_5disabled_calculation_variable11.sh new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable11.gitlab.md b/tests/results/test_namespace/04_5disabled_calculation_variable11.gitlab.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable11.md b/tests/results/test_namespace/04_5disabled_calculation_variable11.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_namespace/04_5disabled_calculation_variable11.sh b/tests/results/test_namespace/04_5disabled_calculation_variable11.sh new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_namespace_mandatory/04_5disabled_calculation_variable11.gitlab.md b/tests/results/test_namespace_mandatory/04_5disabled_calculation_variable11.gitlab.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_namespace_mandatory/04_5disabled_calculation_variable11.md b/tests/results/test_namespace_mandatory/04_5disabled_calculation_variable11.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_namespace_mandatory/04_5disabled_calculation_variable11.sh b/tests/results/test_namespace_mandatory/04_5disabled_calculation_variable11.sh new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_namespace_mandatory_secrets/04_5disabled_calculation_variable11.gitlab.md b/tests/results/test_namespace_mandatory_secrets/04_5disabled_calculation_variable11.gitlab.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_namespace_mandatory_secrets/04_5disabled_calculation_variable11.md b/tests/results/test_namespace_mandatory_secrets/04_5disabled_calculation_variable11.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_namespace_mandatory_secrets/04_5disabled_calculation_variable11.sh b/tests/results/test_namespace_mandatory_secrets/04_5disabled_calculation_variable11.sh new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_namespace_read_write/04_5disabled_calculation_variable11.gitlab.md b/tests/results/test_namespace_read_write/04_5disabled_calculation_variable11.gitlab.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_namespace_read_write/04_5disabled_calculation_variable11.md b/tests/results/test_namespace_read_write/04_5disabled_calculation_variable11.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_namespace_read_write/04_5disabled_calculation_variable11.sh b/tests/results/test_namespace_read_write/04_5disabled_calculation_variable11.sh new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_namespace_read_write_errors/04_5disabled_calculation_variable11.gitlab.md b/tests/results/test_namespace_read_write_errors/04_5disabled_calculation_variable11.gitlab.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_namespace_read_write_errors/04_5disabled_calculation_variable11.md b/tests/results/test_namespace_read_write_errors/04_5disabled_calculation_variable11.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_namespace_read_write_errors/04_5disabled_calculation_variable11.sh b/tests/results/test_namespace_read_write_errors/04_5disabled_calculation_variable11.sh new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_variable11.gitlab.md b/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_variable11.gitlab.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_variable11.md b/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_variable11.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_variable11.sh b/tests/results/test_namespace_read_write_mandatory/04_5disabled_calculation_variable11.sh new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_namespace_read_write_mandatory_secrets/04_5disabled_calculation_variable11.gitlab.md b/tests/results/test_namespace_read_write_mandatory_secrets/04_5disabled_calculation_variable11.gitlab.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_namespace_read_write_mandatory_secrets/04_5disabled_calculation_variable11.md b/tests/results/test_namespace_read_write_mandatory_secrets/04_5disabled_calculation_variable11.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_namespace_read_write_mandatory_secrets/04_5disabled_calculation_variable11.sh b/tests/results/test_namespace_read_write_mandatory_secrets/04_5disabled_calculation_variable11.sh new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_namespace_read_write_secrets/04_5disabled_calculation_variable11.gitlab.md b/tests/results/test_namespace_read_write_secrets/04_5disabled_calculation_variable11.gitlab.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_namespace_read_write_secrets/04_5disabled_calculation_variable11.md b/tests/results/test_namespace_read_write_secrets/04_5disabled_calculation_variable11.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_namespace_read_write_secrets/04_5disabled_calculation_variable11.sh b/tests/results/test_namespace_read_write_secrets/04_5disabled_calculation_variable11.sh new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_namespace_read_write_secrets_errors/04_5disabled_calculation_variable11.gitlab.md b/tests/results/test_namespace_read_write_secrets_errors/04_5disabled_calculation_variable11.gitlab.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_namespace_read_write_secrets_errors/04_5disabled_calculation_variable11.md b/tests/results/test_namespace_read_write_secrets_errors/04_5disabled_calculation_variable11.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_namespace_read_write_secrets_errors/04_5disabled_calculation_variable11.sh b/tests/results/test_namespace_read_write_secrets_errors/04_5disabled_calculation_variable11.sh new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_namespace_secrets/04_5disabled_calculation_variable11.gitlab.md b/tests/results/test_namespace_secrets/04_5disabled_calculation_variable11.gitlab.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_namespace_secrets/04_5disabled_calculation_variable11.md b/tests/results/test_namespace_secrets/04_5disabled_calculation_variable11.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_namespace_secrets/04_5disabled_calculation_variable11.sh b/tests/results/test_namespace_secrets/04_5disabled_calculation_variable11.sh new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_read_write/04_5disabled_calculation_variable11.gitlab.md b/tests/results/test_read_write/04_5disabled_calculation_variable11.gitlab.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_read_write/04_5disabled_calculation_variable11.md b/tests/results/test_read_write/04_5disabled_calculation_variable11.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_read_write/04_5disabled_calculation_variable11.sh b/tests/results/test_read_write/04_5disabled_calculation_variable11.sh new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_read_write_errors/04_5disabled_calculation_variable11.gitlab.md b/tests/results/test_read_write_errors/04_5disabled_calculation_variable11.gitlab.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_read_write_errors/04_5disabled_calculation_variable11.md b/tests/results/test_read_write_errors/04_5disabled_calculation_variable11.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_read_write_errors/04_5disabled_calculation_variable11.sh b/tests/results/test_read_write_errors/04_5disabled_calculation_variable11.sh new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_read_write_mandatory/04_5disabled_calculation_variable11.gitlab.md b/tests/results/test_read_write_mandatory/04_5disabled_calculation_variable11.gitlab.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_read_write_mandatory/04_5disabled_calculation_variable11.md b/tests/results/test_read_write_mandatory/04_5disabled_calculation_variable11.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_read_write_mandatory/04_5disabled_calculation_variable11.sh b/tests/results/test_read_write_mandatory/04_5disabled_calculation_variable11.sh new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_read_write_mandatory_secrets/04_5disabled_calculation_variable11.gitlab.md b/tests/results/test_read_write_mandatory_secrets/04_5disabled_calculation_variable11.gitlab.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_read_write_mandatory_secrets/04_5disabled_calculation_variable11.md b/tests/results/test_read_write_mandatory_secrets/04_5disabled_calculation_variable11.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_read_write_mandatory_secrets/04_5disabled_calculation_variable11.sh b/tests/results/test_read_write_mandatory_secrets/04_5disabled_calculation_variable11.sh new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_read_write_secrets/04_5disabled_calculation_variable11.gitlab.md b/tests/results/test_read_write_secrets/04_5disabled_calculation_variable11.gitlab.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_read_write_secrets/04_5disabled_calculation_variable11.md b/tests/results/test_read_write_secrets/04_5disabled_calculation_variable11.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_read_write_secrets/04_5disabled_calculation_variable11.sh b/tests/results/test_read_write_secrets/04_5disabled_calculation_variable11.sh new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_read_write_secrets_errors/04_5disabled_calculation_variable11.gitlab.md b/tests/results/test_read_write_secrets_errors/04_5disabled_calculation_variable11.gitlab.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_read_write_secrets_errors/04_5disabled_calculation_variable11.md b/tests/results/test_read_write_secrets_errors/04_5disabled_calculation_variable11.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_read_write_secrets_errors/04_5disabled_calculation_variable11.sh b/tests/results/test_read_write_secrets_errors/04_5disabled_calculation_variable11.sh new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_secrets/04_5disabled_calculation_variable11.gitlab.md b/tests/results/test_secrets/04_5disabled_calculation_variable11.gitlab.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_secrets/04_5disabled_calculation_variable11.md b/tests/results/test_secrets/04_5disabled_calculation_variable11.md new file mode 100644 index 00000000..e69de29b diff --git a/tests/results/test_secrets/04_5disabled_calculation_variable11.sh b/tests/results/test_secrets/04_5disabled_calculation_variable11.sh new file mode 100644 index 00000000..e69de29b