def getAppliInfo(self, user, appname): servers = utils.extract_user_servers(user) #Retrieving applilist for any server controlled by kermit applications = [] if servers: for server in servers: environment = self.extract_environment_level(server) appli = extract_appli_details(server.hostname, environment, appname) if appli: applications.extend(appli) return applications
def getAppliInfo(self, user, appname): servers = utils.extract_user_servers(user) if user != 'fooUser': if not user.is_superuser: servers = get_objects_for_user(user, 'use_server', Server) #Retrieving applilist for any server controlled by kermit applications = [] for server in servers: environment = self.extract_environment_level(server) appli = extract_appli_details(server.hostname, environment, appname) if appli: applications.extend(appli) return applications