MCPcopy Index your code
hub / github.com/retspen/webvirtcloud / get_status

Method get_status

vrtManager/storage.py:95–100  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

93 return self.pool.name()
94
95 def get_status(self):
96 status = ['Not running', 'Initializing pool, not available', 'Running normally', 'Running degraded']
97 try:
98 return status[self.pool.info()[0]]
99 except ValueError:
100 return 'Unknown'
101
102 def get_size(self):
103 return [self.pool.info()[1], self.pool.info()[3]]

Callers 3

storageFunction · 0.45
instanceFunction · 0.45
inst_statusFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected