Commit b36037da authored by Antoine Millet's avatar Antoine Millet
Browse files

sto*_vol tag now use is_shared property to act

parent e20a9602
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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),