Skip to content

Commit

Permalink
PE: Containers: Allow custom control ports when using the machine's l…
Browse files Browse the repository at this point in the history
…ocal address
  • Loading branch information
beekhof committed Mar 27, 2017
1 parent 4574333 commit 12e12ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pengine/container.c
Expand Up @@ -119,9 +119,9 @@ valid_network(container_variant_data_t *data)
if(data->ip_range_start) {
return TRUE;
}
if(data->control_port && crm_str_eq(data->docker_network, "host", TRUE)) {
if(data->control_port) {
if(data->replicas_per_host > 1) {
pe_err("Specifying the 'control-port' with 'internal-network=host' for %s requires 'replicas-per-host=1'", data->prefix);
pe_err("Specifying the 'control-port' for %s requires 'replicas-per-host=1'", data->prefix);
data->replicas_per_host = 1;
}
return TRUE;
Expand Down

0 comments on commit 12e12ae

Please sign in to comment.