fix: secret_manager has no real default value

This commit is contained in:
egarette@silique.fr 2026-01-17 10:18:44 +01:00
parent 6d24fc5b8c
commit 0a31787d63
67 changed files with 9 additions and 8 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -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: <span style="color: #C23636">variable or family "var" does not exist so cannot load "dyn{{ identifier }}.var, it has been loading from fake user data</span>

View file

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