diff --git a/lean/models/json_module.py b/lean/models/json_module.py index 0f0fd7ec..4a87d1ac 100644 --- a/lean/models/json_module.py +++ b/lean/models/json_module.py @@ -22,7 +22,7 @@ from lean.constants import MODULE_TYPE, MODULE_PLATFORM, MODULE_CLI_PLATFORM from lean.container import container from lean.models.configuration import BrokerageEnvConfiguration, Configuration, InternalInputUserInput, \ - PathParameterUserInput, AuthConfiguration + PathParameterUserInput, AuthConfiguration, ChoiceUserInput from copy import copy from abc import ABC @@ -211,6 +211,9 @@ def config_build(self, _logged_messages.add(log_message) if type(configuration) is InternalInputUserInput: continue + if isinstance(configuration, ChoiceUserInput) and len(configuration._choices) == 0: + logger.debug(f"skipping configuration '{configuration._id}': no choices available.") + continue elif isinstance(configuration, AuthConfiguration): auth_authorizations = get_authorization(container.api_client.auth0, self._display_name.lower(), logger) logger.debug(f'auth: {auth_authorizations}')