Ejemplo n.º 1
0
 def getApplicationsPath(self, user, server_path):
     servers = utils.extract_user_servers_in_path(user, server_path)
     #Retrieving applilist for any server controlled by kermit
     applications = []
     for server in servers:
         environment = self.extract_environment_level(server)  
         appli = extract_appli_info(server.hostname, environment)
         if appli:
             for app in appli:
                 extracted = check_contains(applications, app)
                 if extracted:
                     extracted["deploy"] = extracted["deploy"] + 1
                     extracted["servers"].append(app["servers"])
                 else:
                     applications.append(app)
     return applications
Ejemplo n.º 2
0
 def getApplicationsPath(self, user, server_path):
     servers = utils.extract_user_servers_in_path(user, server_path)
     #Retrieving applilist for any server controlled by kermit
     applications = []
     for server in servers:
         environment = self.extract_environment_level(server)  
         appli = extract_appli_info(server.hostname, environment)
         if appli:
             for app in appli:
                 extracted = check_contains(applications, app)
                 if extracted:
                     extracted["deploy"] = extracted["deploy"] + 1
                     extracted["servers"].append(app["servers"])
                 else:
                     applications.append(app)
     return applications