summaryrefslogtreecommitdiffstats
path: root/cobbler/cobbler.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2007-02-09 09:46:09 -0500
committerJim Meyering <jim@meyering.net>2007-02-09 09:46:09 -0500
commit4fcfce9f722961c6b20ee6cec3eb196f618b7a2e (patch)
treead775d0564e8624ec81f5a884d303f2320012647 /cobbler/cobbler.py
parent889dfd293ac1b753a317b495afed5cb26ad17985 (diff)
downloadthird_party-cobbler-4fcfce9f722961c6b20ee6cec3eb196f618b7a2e.tar.gz
third_party-cobbler-4fcfce9f722961c6b20ee6cec3eb196f618b7a2e.tar.xz
third_party-cobbler-4fcfce9f722961c6b20ee6cec3eb196f618b7a2e.zip
Added an optional --breed parameter for "distro add" that supports usage of a SuSE answer file (needs testing) and can make way for other distros. koan needs to detect when it's been given a non-redhat based distro and not do anything, though cobbler PXE should work in both cases.
Diffstat (limited to 'cobbler/cobbler.py')
-rwxr-xr-xcobbler/cobbler.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/cobbler/cobbler.py b/cobbler/cobbler.py
index 1ba42db..4a57919 100755
--- a/cobbler/cobbler.py
+++ b/cobbler/cobbler.py
@@ -337,6 +337,7 @@ class BootCLI:
'--distro' : lambda(a) : profile.set_distro(a),
'--kickstart' : lambda(a) : profile.set_kickstart(a),
'--kick-start' : lambda(a) : profile.set_kickstart(a),
+ '--answers' : lambda(a) : profile.set_kickstart(a),
'--kopts' : lambda(a) : profile.set_kernel_options(a),
'--xen-name' : lambda(a) : profile.set_virt_name(a),
'--virt-name' : lambda(a) : profile.set_virt_name(a),
@@ -377,7 +378,8 @@ class BootCLI:
'--initrd' : lambda(a) : distro.set_initrd(a),
'--kopts' : lambda(a) : distro.set_kernel_options(a),
'--arch' : lambda(a) : distro.set_arch(a),
- '--ksmeta' : lambda(a) : distro.set_ksmeta(a)
+ '--ksmeta' : lambda(a) : distro.set_ksmeta(a),
+ '--breed' : lambda(a) : distro.set_breed(a)
}
on_ok = lambda: self.api.distros().add(distro, with_copy=self.api.sync_flag)
return self.apply_args(args,commands,on_ok)