Commit abbf36fd authored by Adrian Rossouw's avatar Adrian Rossouw

Possible fix for synch issue. When evaluating statement, it stops if any are false.

parent c863cabe
......@@ -27,12 +27,13 @@ class provisionService_http_cluster extends provisionService_http {
*/
function _each_server($method, $args = array()) {
// Return True by default.
$result = TRUE;
$ret = TRUE;
foreach ($this->server->cluster_web_servers as $server) {
// If any methods return false, return false for the whole operation.
$result = $result && call_user_func_array(array(d($server)->service('http', $this->context), $method), $args);
$result = call_user_func_array(array(d($server)->service('http', $this->context), $method), $args);
$ret = $ret && $result;
}
return $result;
return $ret;
}
function parse_configs() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment