Revision b8aa46ed
b/lib/hypervisor/hv_lxc.py | ||
---|---|---|
189 | 189 |
# 'ganeti-lxc-test1' is STOPPED |
190 | 190 |
# 'ganeti-lxc-test1' is RUNNING |
191 | 191 |
_, state = result.stdout.rsplit(None, 1) |
192 |
if state != "RUNNING": |
|
193 |
return None |
|
192 | 194 |
|
193 | 195 |
cpu_list = self._GetCgroupCpuList(instance_name) |
194 |
|
|
195 |
if state == "RUNNING": |
|
196 |
return (instance_name, 0, 0, len(cpu_list), 0, 0) |
|
197 |
return None |
|
196 |
return (instance_name, 0, 0, len(cpu_list), 0, 0) |
|
198 | 197 |
|
199 | 198 |
def GetAllInstancesInfo(self): |
200 | 199 |
"""Get properties of all instances. |
Also available in: Unified diff