tools/ios_convert: use join rather than manually looping

This commit is contained in:
James Prestwood 2019-08-26 16:34:21 -07:00 committed by Denis Kenzior
parent de2c808970
commit 202f65be69
1 changed files with 1 additions and 7 deletions

View File

@ -144,13 +144,7 @@ def write_network(network, root_ca_path):
name + '.conf'
output += "[Hotspot]\n"
output += "NAIRealmNames="
for i in range(len(network.nai_realms)):
output += network.nai_realms[i]
if i < len(network.nai_realms) - 1:
output += ','
output += ','.join(network.nai_realms)
output += "\n"
output += "Name=%s\n" % name