From 64e17a5f445948546bf1a7c3c2640e9e1e341f5b Mon Sep 17 00:00:00 2001 From: Andrzej Jankowski Date: Fri, 6 Jun 2014 14:53:38 +0200 Subject: [PATCH] shares mounted on VMs are now displayed with [Virtual Mount] prefix --- src/ralph/util/pricing.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ralph/util/pricing.py b/src/ralph/util/pricing.py index bba5dc6b6a..d1fc43bc64 100644 --- a/src/ralph/util/pricing.py +++ b/src/ralph/util/pricing.py @@ -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,