From eccc7803a9329ab74ba97341009761986a6db982 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 23 Jan 2018 10:36:25 -0500 Subject: [PATCH] Move the (insecure) output to where promised --- confluent_client/bin/nodemedia | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/confluent_client/bin/nodemedia b/confluent_client/bin/nodemedia index dd167694..396f0b85 100644 --- a/confluent_client/bin/nodemedia +++ b/confluent_client/bin/nodemedia @@ -76,9 +76,9 @@ def list_media(noderange, media): printerror(res) for node in res.get('databynode', []): url = res['databynode'][node]['url'] - if url and not res['databynode'][node].get('secure', False): - url += ' (insecure)' name = res['databynode'][node]['name'] + if url and not res['databynode'][node].get('secure', False): + name += ' (insecure)' print('{0}: {1}'.format(node, url + '/' + name if url else name))