From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brendan Cully Subject: [PATCH 4 of 7] Remus: fix VM stringification Date: Mon, 03 May 2010 11:53:51 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2395345762385384127==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============2395345762385384127== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Signed-off-by: Brendan Cully --===============2395345762385384127== Content-Type: text/x-patch; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=xen-4.0-4.patch # HG changeset patch # User Brendan Cully # Date 1272694699 25200 # Node ID d72ec2ffeb67195d55e942f50c04f98365eaec74 # Parent 35a9de6bca43769acf76cbd3a4a1f8c4f245da4b Remus: fix VM stringification Signed-off-by: Brendan Cully diff --git a/tools/python/xen/remus/vm.py b/tools/python/xen/remus/vm.py --- a/tools/python/xen/remus/vm.py +++ b/tools/python/xen/remus/vm.py @@ -42,8 +42,9 @@ 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): --===============2395345762385384127== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============2395345762385384127==--