xend: fix c/s 19510

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
This commit is contained in:
Keir Fraser committed 2009-04-08 09:02:22 +01:00
1 parent ca01c742be
commit bd5e620a8b
1 file changed
+4 -4
+4 -4
View File
@@ -71,6 +71,10 @@ class PciController(DevController):
pcidevid = 0
vslots = ""
for pci_config in config.get('devs', []):
vslot = pci_config.get('vslot')
if vslot is not None:
vslots = vslots + vslot + ";"
domain = parse_hex(pci_config.get('domain', 0))
bus = parse_hex(pci_config.get('bus', 0))
slot = parse_hex(pci_config.get('slot', 0))
@@ -83,10 +87,6 @@ class PciController(DevController):
opts = reduce(lambda x, y: x+','+y, opts)
back['opts-%i' % pcidevid] = opts
vslot = pci_config.get('vslot')
if vslot is not None:
vslots = vslots + vslot + ";"
back['dev-%i' % pcidevid] = "%04x:%02x:%02x.%01x" % \
(domain, bus, slot, func)
back['uuid-%i' % pcidevid] = pci_config.get('uuid', '')
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.