summaryrefslogtreecommitdiffstats
path: root/cobbler/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'cobbler/api.py')
-rw-r--r--cobbler/api.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/cobbler/api.py b/cobbler/api.py
index 58f1046..a061b68 100644
--- a/cobbler/api.py
+++ b/cobbler/api.py
@@ -22,6 +22,7 @@ import action_enchant
import action_import
import action_reposync
import action_status
+import action_validate
class BootAPI:
@@ -117,6 +118,18 @@ class BootAPI:
check = action_check.BootCheck(self._config)
return check.run()
+ def validateks(self):
+ """
+ Use ksvalidator (from pykickstart, if available) to determine
+ whether the cobbler kickstarts are going to be (likely) well
+ accepted by Anaconda. Presence of an error does not indicate
+ the kickstart is bad, only that the possibility exists. ksvalidator
+ is not available on all platforms and can not detect "future"
+ kickstart format correctness.
+ """
+ validator = action_validate.Validate(self._config)
+ return validator.run()
+
def sync(self):
"""
Take the values currently written to the configuration files in