Commit 76184281 authored by Jennifer Graul's avatar Jennifer Graul
Browse files

made output dw table sorted

parent 6a0e08e4
...@@ -12,7 +12,7 @@ import re ...@@ -12,7 +12,7 @@ import re
def print_dw_table(vmdata): def print_dw_table(vmdata):
print('^ Name ^ MAC-Adressen + VLANs ^ CPU-Sockets ^ CPU-Cores ^ RAM in MB ^ PVE-Benutzer ' print('^ Name ^ MAC-Adressen + VLANs ^ CPU-Sockets ^ CPU-Cores ^ RAM in MB ^ PVE-Benutzer '
'^ Autostart? ^ Bemerkung ^') '^ Autostart? ^ Bemerkung ^')
for vmid, data in vmdata.items(): for vmid, data in sorted(vmdata.items()):
line = '| ' line = '| '
if 'wikilink' in data: if 'wikilink' in data:
line = line + data['wikilink'] line = line + data['wikilink']
......
Supports Markdown
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