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:
Keir Fraser committed 2010-06-22 07:28:47 +01:00
1 parent 03498c2021
commit db1139fb6e
1 file changed
+3 -2
+3 -2
View File
@@ -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):
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.