Commit 3068b6ef authored by Antoine Millet's avatar Antoine Millet
Browse files

Use -- in order to prevent argparse to handle removed VLAN as arguments

parent f59be6d0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -262,11 +262,11 @@ class Handler(HostHandler):
        if name in self.hypervisor.domains:
            if mac_address is None:
                rcode, output = execute(self.main, [self.main.config.vlan_script,
                                                    name, vlan_update_format])
                                                    name, '--', vlan_update_format])
            else:
                rcode, output = execute(self.main, [self.main.config.vlan_script,
                                                    '--iface-macaddr', mac_address,
                                                    name, vlan_update_format])
                                                    name, '--', vlan_update_format])
            if rcode != 0:
                raise RuntimeError(output.strip().split('\n')[-1].strip())
        else: