From 5daab278a734ed9679ef1e7aaa51a62e82292b85 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Tue, 13 May 2008 11:59:22 -0400 Subject: Added code to cobbler check to see if any templates are still using the default password, and if so, to warn about them. --- cobbler/remote.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'cobbler/remote.py') 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 != "<>": - files[x.kickstart] = 1 - for x in self.api.systems(): - if x.kickstart is not None and x.kickstart != "" and x.kickstart != "<>": - 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) -- cgit