Permalink
Browse files

PE: Containers: Allow custom control ports when using the machine's l…

…ocal address
  • Loading branch information...
beekhof committed Mar 27, 2017
1 parent 4574333 commit 12e12aef412d5a06696a58292088dfe1d01b2e34
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/pengine/container.c
View
@@ -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;

0 comments on commit 12e12ae

Please sign in to comment.