diff options
Diffstat (limited to 'cobbler/api.py')
-rw-r--r-- | cobbler/api.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cobbler/api.py b/cobbler/api.py index b846c81..4e26992 100644 --- a/cobbler/api.py +++ b/cobbler/api.py @@ -246,9 +246,10 @@ class BootAPI: """ return module_loader.get_module_from_file(section,name) -if __name__ == "__main__": - api = BootAPI() - print api.version() - + def get_modules_in_category(self,category): + """ + Returns all modules in a given category, for instance "serializer", or "cli". + """ + return get_modules_in_category(category) |