Commit fde0d7fc authored by Dionysis Grigoropoulos's avatar Dionysis Grigoropoulos Committed by Stavros Sachtouris
Browse files

Better handling of a string printing

Better handling of the way we print a string in network list
parent af89f550
......@@ -130,8 +130,8 @@ class network_list(_init_network, _optional_json, _name_filter, _id_filter):
nets = [dict(
_0_id=n['id'],
_1_name=n['name'],
_2_public='( %s )' % 'public' if (
n.get('public', None)) else '( private )') for n in nets]
_2_public='( %s )' % ('public' if (
n.get('public', None)) else 'private')) for n in nets]
kwargs = dict(title=('_0_id', '_1_name', '_2_public'))
else:
kwargs = dict()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment