Commit ffba413a authored by Antoine Millet's avatar Antoine Millet

Added sto*_shared tag

parent cf89ed48
......@@ -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()
......
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