Skip to content

Commit

Permalink
shares mounted on VMs are now displayed with [Virtual Mount] prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzej-jankowski committed Jun 6, 2014
1 parent 4046200 commit 64e17a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ralph/util/pricing.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,8 @@ def details_disk(dev, purchase_only=False):
mount.share.label, total, mount.share.size)
else:
name = '%s (%d MiB)' % (mount.share.label, mount.share.size)
if mount.is_virtual:
name = '[Virtual Mount] %s' % name
yield {
'label': name,
'model': mount.share.model,
Expand Down

0 comments on commit 64e17a5

Please sign in to comment.