def get_service_replace_plugin(self, request, plugin_dict, task_id): replace_config = self.get_service_replace_config(request, task_id) vm_plugin = VM_ServiceReplacePlugin(replace_config, plugin_dict) deploy_servers = CICommonControllPageWorker.get_deploy_server_dropdown_list(self, vm_plugin.deploy_server) pagefileds = {'plugin': vm_plugin, "deploy_servers": deploy_servers} return self.get_webpart(pagefileds, vm_plugin.get_template_path())
def copy2_server_plugin(self, request, plugin_dict, task_id): vm_plugin = VM_Copy2ServerPlugin(plugin_dict) deploy_servers = CICommonControllPageWorker.get_deploy_server_dropdown_list(self, vm_plugin.deploy_server) pagefileds = {"deploy_servers": deploy_servers, 'plugin': vm_plugin} return self.get_webpart(pagefileds, vm_plugin.get_template_path())