Loading cloudcontrol/node/hypervisor/lib.py +1 −0 Original line number Diff line number Diff line Loading @@ -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() Loading Loading
cloudcontrol/node/hypervisor/lib.py +1 −0 Original line number Diff line number Diff line Loading @@ -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() Loading