From 378929579f2fb36a738e12e5c232d998fbdaca34 Mon Sep 17 00:00:00 2001 From: tkucherera Date: Thu, 28 Sep 2023 08:56:52 -0400 Subject: [PATCH] Allow to be able to specify prefix as well --- confluent_client/bin/nodersync | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/confluent_client/bin/nodersync b/confluent_client/bin/nodersync index 8e125ee8..b53b6f34 100755 --- a/confluent_client/bin/nodersync +++ b/confluent_client/bin/nodersync @@ -72,7 +72,9 @@ def run(): elif options.substitutename and not options.loginname: subname = options.substitutename if '{' not in subname: - cmdstr += ' {node}' + '{}:'.format(options.substitutename) + targpath + cmdstr += ' {node}' + '{}:'.format(subname) + targpath + else: + cmdstr += ' {}:'.format(subname) + targpath else: cmdstr += ' {node}:' + targpath