summaryrefslogtreecommitdiffstats
path: root/cobbler/api.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2006-10-17 17:12:04 -0400
committerJim Meyering <jim@meyering.net>2006-10-17 17:12:04 -0400
commit77dbf67da82126d7aa8edbdb187a14914f4ee0ee (patch)
tree024b4a6341d709c45e097e435528e988651a5563 /cobbler/api.py
parent85502c7f1df16b3500a9b1acb866ad77e0bf7545 (diff)
downloadthird_party-cobbler-77dbf67da82126d7aa8edbdb187a14914f4ee0ee.tar.gz
third_party-cobbler-77dbf67da82126d7aa8edbdb187a14914f4ee0ee.tar.xz
third_party-cobbler-77dbf67da82126d7aa8edbdb187a14914f4ee0ee.zip
Working on removing the dependancy on pexpect
Diffstat (limited to 'cobbler/api.py')
-rw-r--r--cobbler/api.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/cobbler/api.py b/cobbler/api.py
index bc95a29..0282c43 100644
--- a/cobbler/api.py
+++ b/cobbler/api.py
@@ -108,12 +108,14 @@ class BootAPI:
sync = action_sync.BootSync(self._config)
return sync.run(dryrun=dryrun)
- def enchant(self,sysname,password):
+ def enchant(self,address,profile,systemdef):
"""
- Apply a system profile to a running remote system, replacing
- the current OS.
+ 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,sysname,password)
+ enchant = action_enchant.Enchant(self._config,address,profile,systemdef)
return enchant.run()
def import_tree(self,tree_path,mirror_url,mirror_name):