| 531 | shell = read_bool_from_config('shell', default_config, default=is_empty(template_property.required_parameters)) |
| 532 | |
| 533 | def get_script_output(script): |
| 534 | output = process_invoker.invoke(script, working_dir, shell=shell) |
| 535 | stripped_output = output.strip() |
| 536 | |
| 537 | if type == PARAM_TYPE_MULTISELECT and '\n' in stripped_output: |
| 538 | return [line.strip() for line in stripped_output.split('\n') if not is_empty(line)] |
| 539 | |
| 540 | return stripped_output |
| 541 | |
| 542 | if not template_property.required_parameters: |
| 543 | self._default = get_script_output(resolved_string_value) |