예제 #1
0
 def _lb_agent_validate_save(self, lb_config, save=False):
     """ Validate or validates /and/ saves (if 'save' flag is True) an HAProxy
     configuration. Note that the validation step is always performed.
     """
     config_string = string_from_config(lb_config,
                                        open(self.config_path).readlines())
     return self._validate_save_config_string(config_string, save)
예제 #2
0
파일: server.py 프로젝트: pombredanne/zato
 def _lb_agent_validate_save(self, lb_config, save=False):
     """ Validate or validates /and/ saves (if 'save' flag is True) an HAProxy
     configuration. Note that the validation step is always performed.
     """
     config_string = string_from_config(lb_config, open(self.config_path).readlines())
     return self._validate_save_config_string(config_string, save)