Skip to content

Commit 29ba74a

Browse files
committed
Change delimiter for parameter split to from comma to semicolon
This allows users to specify a json string as parameter which may contain commas. Signed-off-by: Bernd Hufmann <[email protected]>
1 parent 5ded7d6 commit 29ba74a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tsp_cli_client

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def __get_tree(uuid, outputid, treetype):
143143
return None
144144

145145
def __parse_params (parameters_string):
146-
pairs = re.split(',', parameters_string)
146+
pairs = re.split(';', parameters_string)
147147
_params = {}
148148
for pair in pairs:
149149
pair_list = re.split('=', pair)
@@ -221,7 +221,7 @@ if __name__ == "__main__":
221221
help="Delete a configuration", metavar="CONFIGURATION_ID")
222222
parser.add_argument("--type-id", dest="type_id", help="id of configuration source type")
223223
parser.add_argument("--config-id", dest="config_id", help="id of configuration")
224-
parser.add_argument("--params", dest="params", help="comma separated key value pairs (key1=val1,key2=val2)")
224+
parser.add_argument("--params", dest="params", help="semicolon separated key value pairs (key1=val1;key2=val2)")
225225

226226
argcomplete.autocomplete(parser)
227227
options = parser.parse_args()

0 commit comments

Comments
 (0)