From c2dc5397d3f18c3aedd2de2b99e5414b39ba09ec Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Wed, 28 Nov 2007 14:08:56 -0500 Subject: Allow xenfv as a virt type, also make --interface=N work for system edits --- cobbler/modules/cli_system.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cobbler/modules/cli_system.py') diff --git a/cobbler/modules/cli_system.py b/cobbler/modules/cli_system.py index dc7e6bc..4056359 100644 --- a/cobbler/modules/cli_system.py +++ b/cobbler/modules/cli_system.py @@ -78,7 +78,11 @@ class SystemFunction(commands.CobblerFunction): if self.options.virt_path: obj.set_virt_path(self.options.virt_path) if self.options.virt_type: obj.set_virt_type(self.options.virt_type) - my_interface = "intf%s" % self.options.interface + if self.options.interface: + my_interface = "intf%s" % self.options.interface + else: + my_interface = "intf0" + if self.options.hostname: obj.set_hostname(self.options.hostname, my_interface) if self.options.mac: obj.set_mac_address(self.options.mac, my_interface) if self.options.ip: obj.set_ip_address(self.options.ip, my_interface) -- cgit