Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Mar 30, 2021
1 parent 6945a43 commit 6adbc69
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,14 +269,13 @@ def showvminfo():

prop_map = {"size": "Size", "image.url": "URL", "device": "Device", "mount_path": "Mount Path",
"fstype": "F.S. type", "os.flavour": "O.S. Flavor", "os.version": "O.S. Version"}

for name, label in prop_map.items():
prop = "disk.%s.%s" % (cont, name)
if prop in vminfo:
disks += Markup('  ')
disks += "- %s: %s" % (label, vminfo[prop])
disks += Markup('<br/>')
del vminfo[prop]
del vminfo[prop]

cont += 1

Expand Down

0 comments on commit 6adbc69

Please sign in to comment.