diff --git a/bootstrap.py b/bootstrap.py index 72c5ccc..16167c8 100755 --- a/bootstrap.py +++ b/bootstrap.py @@ -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) diff --git a/src/risotto/machine.py b/src/risotto/machine.py index 48e9bc8..661d6b4 100644 --- a/src/risotto/machine.py +++ b/src/risotto/machine.py @@ -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: