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

Added sto*_shared tag

parent cf89ed48
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -343,6 +343,7 @@ class StorageIndex(object):
                    Tag('sto%s_ratio' % s.name,
                        partial(lambda x: '%0.2f' % (1 - float(x.available) / x.capacity)
                                if x.available is not None and x.capacity is not None else None, s), 5, 5),
                    Tag('sto%s_shared' % s.name, partial(lambda x: {True: 'yes', False: 'no'}[s.is_shared], s)),
                ))

        self.update_path_index()