Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion nettacker/core/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ def parse(module_content, module_inputs):
if isinstance(module_content, dict):
for key in copy.deepcopy(module_content):
if key in module_inputs:
if module_inputs[key]:
if module_inputs[key] and key != "timeout":
module_content[key] = module_inputs[key]
Comment thread
Aarush289 marked this conversation as resolved.
# If the timeout value is not 3.0, then use the provided value. Otherwise, keep the value from the YAML file.
elif (
key == "timeout"
and abs(module_inputs[key] - Config.settings.timeout) > 1e-9
):
module_content[key] = module_inputs[key]
elif isinstance(module_content[key], (dict, list)):
module_content[key] = TemplateLoader.parse(module_content[key], module_inputs)
Expand Down
Loading