This is an automated email from the ASF dual-hosted git repository. lfrolov pushed a commit to branch DLAB-1594-2 in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit f2d35df1d2fce5fc53596b4374e721b6e0babffb Author: leonidfrolov <[email protected]> AuthorDate: Tue Aug 4 16:48:46 2020 +0300 [DLAB-1594]: changed how lines are replaced --- infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py b/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py index 0c9e4a1..eafb2a3 100644 --- a/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py +++ b/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py @@ -158,7 +158,7 @@ def find_replace_line(file_path, searched_str, replacement_line): for n, line in enumerate(lines): if searched_str in line: lines[n] = replacement_line - sudo('echo "{}" >> {}'.format(lines[n], file_path)) + sudo('echo \'{}\' >> {}'.format(lines[n], file_path)) except Exception as err: traceback.print_exc() print('Failed to replace string: ' + str(err)) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
