Remus: fix VM stringification

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
This commit is contained in:
Keir Fraser committed 2010-05-04 09:34:50 +01:00
1 parent a47cb321e9
commit 4bab5e8047
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.