forked from stove/risotto
better hide_secret support
This commit is contained in:
parent
a400e81fbe
commit
cb1ab19099
2 changed files with 6 additions and 0 deletions
|
@ -84,6 +84,9 @@ async def main():
|
|||
# if rougail.general.hide_secret not exists
|
||||
pass
|
||||
await config.property.read_only()
|
||||
for server_name in SERVERS:
|
||||
config = CONFIGS[server_name]['config']
|
||||
await config.value.dict()
|
||||
for server_name in SERVERS:
|
||||
module_name = CONFIGS[server_name]['module_name']
|
||||
destinations_dir = join(INSTALL_DIR, module_name, CONFIG_DIFF_DIR, server_name)
|
||||
|
|
|
@ -44,6 +44,9 @@ async def set_linked_multi_variables(value: str,
|
|||
raise Exception(f'unknown variable {key}')
|
||||
if kvalue is None and not kwargs.get(f'allow_none_{index}', False):
|
||||
return
|
||||
if f'linked_value_{index}' not in kwargs:
|
||||
# value is disabled
|
||||
continue
|
||||
if key.startswith('linked_provider_'):
|
||||
path = await config.information.get('provider:' + kvalue, None)
|
||||
if not path:
|
||||
|
|
Loading…
Reference in a new issue