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))