Commit b36037da authored by Antoine Millet's avatar Antoine Millet

sto*_vol tag now use is_shared property to act

parent e20a9602
......@@ -328,7 +328,7 @@ class StorageIndex(object):
lambda: s.capacity - s.available, 5, 5),
Tag('sto%s_type' % s.name, lambda: s.type, 5, 5),
Tag('sto%s_vol' % s.name,
lambda: ' '.join(s.volumes) if s.volumes and s.type != 'rbd' else None,
lambda: ' '.join(s.volumes) if s.volumes and not s.is_shared else None,
5, 5),
Tag('sto%s_ratio' % s.name,
lambda: '%0.2f' % (1 - float(s.available) / s.capacity), 5, 5),
......
Markdown is supported
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