summaryrefslogtreecommitdiffstats
path: root/cobbler/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'cobbler/api.py')
-rw-r--r--cobbler/api.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/cobbler/api.py b/cobbler/api.py
index 50d500e..ed2f66c 100644
--- a/cobbler/api.py
+++ b/cobbler/api.py
@@ -38,14 +38,12 @@ class BootAPI:
"""
return self._config.clear()
-
def systems(self):
"""
Return the current list of systems
"""
return self._config.systems()
-
def profiles(self):
"""
Return the current list of profiles
@@ -76,7 +74,6 @@ class BootAPI:
"""
return self._config.new_system()
-
def new_distro(self):
"""
Create a blank, unconfigured distro, unattached to a collection.
@@ -133,8 +130,12 @@ class BootAPI:
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,is_virt)
- return enchant.run()
+ enchanter = action_enchant.Enchant(self._config,address,profile,systemdef,is_virt)
+ return enchanter.run()
+
+ def status(self,mode):
+ statusifier = action_status.BootStatusReport(self._config, mode)
+ return statusifier.run()
def import_tree(self,tree_path,mirror_url,mirror_name):
"""