# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1272962090 -3600
# Node ID d6bd61a5a0fc845d9905605c676e58521d5e1621
# Parent 321dddf767e2460458313d407fb45e0911f002aa
Remus: fix VM stringification
Signed-off-by: Brendan Cully <brendan@xxxxxxxxx>
---
tools/python/xen/remus/vm.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff -r 321dddf767e2 -r d6bd61a5a0fc tools/python/xen/remus/vm.py
--- a/tools/python/xen/remus/vm.py Tue May 04 09:34:23 2010 +0100
+++ b/tools/python/xen/remus/vm.py Tue May 04 09:34:50 2010 +0100
@@ -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):
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|