summaryrefslogtreecommitdiffstats
path: root/cobbler/remote.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-05-13 11:59:22 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-05-13 11:59:22 -0400
commit5daab278a734ed9679ef1e7aaa51a62e82292b85 (patch)
treef575d9c096406d8106a28160e4e74dac4dcbc2f5 /cobbler/remote.py
parent6cc83a05f80d7f3c703aa8743ccacab2aa2ac86d (diff)
downloadthird_party-cobbler-5daab278a734ed9679ef1e7aaa51a62e82292b85.tar.gz
third_party-cobbler-5daab278a734ed9679ef1e7aaa51a62e82292b85.tar.xz
third_party-cobbler-5daab278a734ed9679ef1e7aaa51a62e82292b85.zip
Added code to cobbler check to see if any templates are still using the default
password, and if so, to warn about them.
Diffstat (limited to 'cobbler/remote.py')
-rw-r--r--cobbler/remote.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/cobbler/remote.py b/cobbler/remote.py
index 87695d2..8cf9ba3 100644
--- a/cobbler/remote.py
+++ b/cobbler/remote.py
@@ -170,17 +170,7 @@ class CobblerXMLRPCInterface:
"""
self.log("get_kickstart_templates",token=token)
self.check_access(token, "get_kickstart_templates")
- files = {}
- for x in self.api.profiles():
- if x.kickstart is not None and x.kickstart != "" and x.kickstart != "<<inherit>>":
- files[x.kickstart] = 1
- for x in self.api.systems():
- if x.kickstart is not None and x.kickstart != "" and x.kickstart != "<<inherit>>":
- files[x.kickstart] = 1
- for x in glob.glob("/var/lib/cobbler/kickstarts/*"):
- files[x] = 1
-
- return files.keys()
+ return utils.get_kickstart_templates(self.api)
def is_kickstart_in_use(self,ks,token):
self.log("is_kickstart_in_use",token=token)