diff options
author | Michael Johnson <johnsomor@gmail.com> | 2022-06-09 18:02:21 +0000 |
---|---|---|
committer | Tom Weininger <tweining@redhat.com> | 2022-06-10 11:45:32 +0200 |
commit | 2521e3ee00d91d4002b751ecea06906fdf1c9b0e (patch) | |
tree | 3642cf67e18058564d93c3c01cc02d4d65dcf9ee /taskflow/engines | |
parent | a26e2d8898a2203a72adf28c8751e41450b1c020 (diff) | |
download | taskflow-2521e3ee00d91d4002b751ecea06906fdf1c9b0e.tar.gz |
Quote string representations
networkx 2.8.3 will raise errors if certain characters, such as a colon, in the node names and the string is not quoted.
This patch double quotes flow, node, and task string representations to make sure there are not issues with these characters occuring in the names.
Story: 2010083
Change-Id: Ib0941cddf14dde5d6b9f97fe0224d6e6f3975226
Diffstat (limited to 'taskflow/engines')
-rw-r--r-- | taskflow/engines/action_engine/compiler.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/taskflow/engines/action_engine/compiler.py b/taskflow/engines/action_engine/compiler.py index c72506a..a88c384 100644 --- a/taskflow/engines/action_engine/compiler.py +++ b/taskflow/engines/action_engine/compiler.py @@ -65,7 +65,8 @@ class Terminator(object): return self._name def __str__(self): - return "%s[$]" % (self._flow,) + flow_name = ("%s" % self._flow).strip('"') + return '"%s[$]"' % flow_name class Compilation(object): |