mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
Remus: fix VM stringification
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca> xen-unstable changeset: 21241:d6bd61a5a0fc xen-unstable date: Tue May 04 09:34:50 2010 +0100
This commit is contained in:
1 parent
03498c2021
commit
db1139fb6e
1 file changed
+3
-2
@@ -42,8 +42,9 @@ class VM(object):
|
||||
self.vifs = getvifs(self.dom)
|
||||
|
||||
def __str__(self):
|
||||
return 'VM %d (%s), MACs: [%s], disks: [%s]' % \
|
||||
(self.domid, self.name, self.epoch, ', '.join(self.macs),
|
||||
return 'VM %d (%s), vifs: [%s], disks: [%s]' % \
|
||||
(self.domid, self.name,
|
||||
', '.join([str(v) for v in self.vifs]),
|
||||
', '.join([str(d) for d in self.disks]))
|
||||
|
||||
def parsedominfo(dominfo):
|
||||
|
||||