# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1277188127 -3600
# Node ID b075559944d1afc9c39816a1b7924e5d1b87a5de
# Parent 352739113ccb09e99b1ece056ad0f2f62adaf9eb
Remus: fix VM stringification
Signed-off-by: Brendan Cully <brendan@xxxxxxxxx>
xen-unstable changeset: 21241:d6bd61a5a0fc
xen-unstable date: Tue May 04 09:34:50 2010 +0100
---
tools/python/xen/remus/vm.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff -r 352739113ccb -r b075559944d1 tools/python/xen/remus/vm.py
--- a/tools/python/xen/remus/vm.py Tue Jun 22 07:28:11 2010 +0100
+++ b/tools/python/xen/remus/vm.py Tue Jun 22 07:28:47 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
|