diff options
author | mdehaan@mdehaan.rdu.redhat.com <> | 2007-01-03 13:43:11 -0500 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2007-01-03 13:43:11 -0500 |
commit | 5bdacadae14c329ecf1d08d78ae86461ee145f7a (patch) | |
tree | 8511a520b3efc222285ea8f5a2092a177e581099 /cobbler/api.py | |
parent | 328f37dad5da9bad2cef9619a47fecd7a50d3057 (diff) | |
download | third_party-cobbler-5bdacadae14c329ecf1d08d78ae86461ee145f7a.tar.gz third_party-cobbler-5bdacadae14c329ecf1d08d78ae86461ee145f7a.tar.xz third_party-cobbler-5bdacadae14c329ecf1d08d78ae86461ee145f7a.zip |
Add scaffolding for status report function/module.
Diffstat (limited to 'cobbler/api.py')
-rw-r--r-- | cobbler/api.py | 11 |
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): """ |