From 1787a970abd554472c319556753e7ef24278ceeb Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 22 Jun 2021 02:21:32 -0400 Subject: [PATCH] Fix bug in address check format string --- client-cli/cli_lib/vm.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client-cli/cli_lib/vm.py b/client-cli/cli_lib/vm.py index 9192d28a..f84eec05 100644 --- a/client-cli/cli_lib/vm.py +++ b/client-cli/cli_lib/vm.py @@ -598,10 +598,10 @@ def vm_networks_add(config, vm, network, macaddr, model, sriov, sriov_mode, rest if sriov_mode == 'hostdev': if interface.attrib.get('type') == 'hostdev': interface_address = 'domain="{pci_domain}" bus="{pci_bus}" slot="{pci_slot}" function="{pci_function}"'.format( - interface.source.address.attrib.get('domain'), - interface.source.address.attrib.get('bus'), - interface.source.address.attrib.get('slot'), - interface.source.address.attrib.get('function') + pci_domain=interface.source.address.attrib.get('domain'), + pci_bus=interface.source.address.attrib.get('bus'), + pci_slot=interface.source.address.attrib.get('slot'), + pci_function=interface.source.address.attrib.get('function') ) if interface_address == bus_address: return False, 'Network "{}" is already configured for VM "{}".'.format(network, vm)