From 5bdacadae14c329ecf1d08d78ae86461ee145f7a Mon Sep 17 00:00:00 2001 From: "mdehaan@mdehaan.rdu.redhat.com" <> Date: Wed, 3 Jan 2007 13:43:11 -0500 Subject: Add scaffolding for status report function/module. --- cobbler/api.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'cobbler/api.py') 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): """ -- cgit