ConfigurationExpander#
- class wattson.services.configuration.configuration_expander.ConfigurationExpander(configuration_store: ConfigurationStore)#
Bases:
object
Expands the configuration of a WattsonService by replacing expansion placeholders with their current or predefined values.
Methods
Expands the given ServiceConfiguration to a fresh ServiceConfiguration where all expansion handles are replaced by their actual value with context information provided by the ExpansionStore.
- __init__(configuration_store: ConfigurationStore)#
- expand_node_configuration(node: WattsonNetworkNode, service_configuration: ServiceConfiguration) ServiceConfiguration #
Expands the given ServiceConfiguration to a fresh ServiceConfiguration where all expansion handles are replaced by their actual value with context information provided by the ExpansionStore. If an undefined expansion handle is found, an ExpansionException is raised.
- Parameters:
node ('WattsonNetworkNode') – The node to expand this configuration for
service_configuration (ServiceConfiguration) – The ServiceConfiguration to expand
- Returns:
A fresh ServiceConfiguration with all expansion handles replaced
- Return type: