예제 #1
0
 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
예제 #2
0
 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