Skip to content

Commit a10e216

Browse files
authored
fix: Issue with pre-created compound child tasks in ftm workflow. (#3299)
1 parent f0bab11 commit a10e216

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/ansys/fluent/core/workflow.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,16 +1037,16 @@ def python_name(self) -> str:
10371037
return self._python_name
10381038

10391039
def _get_python_names_for_compound_child(self):
1040-
py_name = (
1041-
self._command_source._parent_of_compound_child
1042-
+ "_child_"
1043-
+ str(
1044-
self._command_source._compound_child_map[
1045-
self._command_source._parent_of_compound_child
1046-
]
1040+
if self._command_source._parent_of_compound_child:
1041+
return (
1042+
self._command_source._parent_of_compound_child
1043+
+ "_child_"
1044+
+ str(
1045+
self._command_source._compound_child_map[
1046+
self._command_source._parent_of_compound_child
1047+
]
1048+
)
10471049
)
1048-
)
1049-
return py_name
10501050

10511051

10521052
class CompositeTask(BaseTask):

0 commit comments

Comments
 (0)