From 63cef6c3fdb1e006fad3c1f4bf18f2e26f2debba Mon Sep 17 00:00:00 2001
From: Balazs Lecz <leczb@google.com>
Date: Wed, 7 Jul 2010 16:59:06 +0000
Subject: [PATCH] LXC: Fix GetAllInstancesInfo()

Signed-off-by: Balazs Lecz <leczb@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
---
 lib/hypervisor/hv_lxc.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/hypervisor/hv_lxc.py b/lib/hypervisor/hv_lxc.py
index 28be44648..9176ad7fe 100644
--- a/lib/hypervisor/hv_lxc.py
+++ b/lib/hypervisor/hv_lxc.py
@@ -195,10 +195,9 @@ class LXCHypervisor(hv_base.BaseHypervisor):
     @return: [(name, id, memory, vcpus, stat, times),...]
 
     """
-    # TODO: read container info from the cgroup mountpoint
     data = []
     for name in self.ListInstances():
-      data.append((name, 0, 0, 0, 0, 0))
+      data.append(self.GetInstanceInfo(name))
     return data
 
   def _CreateConfigFile(self, instance, root_dir):
-- 
GitLab