summaryrefslogtreecommitdiffstats
path: root/cobbler/api.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2006-12-22 11:15:58 -0500
committerJim Meyering <jim@meyering.net>2006-12-22 11:15:58 -0500
commit10ad449671f383177b2ee51ecbd7dfd98b613339 (patch)
tree9a4cdc60607c2d43ac6654ed5103f3b1f12e8df2 /cobbler/api.py
parent07c03a8def917e217e4ddc1d9420278cbf361ab0 (diff)
downloadthird_party-cobbler-10ad449671f383177b2ee51ecbd7dfd98b613339.tar.gz
third_party-cobbler-10ad449671f383177b2ee51ecbd7dfd98b613339.tar.xz
third_party-cobbler-10ad449671f383177b2ee51ecbd7dfd98b613339.zip
Allow "cobbler enchant" commands to also remotely install Xen on systems in the same way the command already supported destructive re-provisioning.
Syntax is "cobbler enchant --address=foo --profile=foo --virt=yes" or "--system=foo" can replace "--profile" if you want to set the Xen mac address and so forth.
Diffstat (limited to 'cobbler/api.py')
-rw-r--r--cobbler/api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cobbler/api.py b/cobbler/api.py
index 2ebb2e6..50d500e 100644
--- a/cobbler/api.py
+++ b/cobbler/api.py
@@ -126,14 +126,14 @@ class BootAPI:
sync = action_reposync.RepoSync(self._config)
return sync.run(dryrun=dryrun)
- def enchant(self,address,profile,systemdef):
+ def enchant(self,address,profile,systemdef,is_virt):
"""
Re-kickstart a running system.
Either profile or systemdef should be a name of a
profile or system definition, the other should be None. address is an
address reachable by SSH.
"""
- enchant = action_enchant.Enchant(self._config,address,profile,systemdef)
+ enchant = action_enchant.Enchant(self._config,address,profile,systemdef,is_virt)
return enchant.run()
def import_tree(self,tree_path,mirror_url,mirror_name):