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

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

parent f59be6d0
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment