From 2a3b1840eb68fdff8e8dfaa7826e769003d6f33e Mon Sep 17 00:00:00 2001 From: Andy McCrae Date: Tue, 27 Sep 2016 11:35:03 +0100 Subject: [PATCH] Fix bool evaluation for dedicated repl network The | bool was forcing the second var to be a "bool" meaning the statement always evaluated to true. This fixes the issue and ensures that when the addresses are the same the "swift_dedicated_replication" setting evaluates to "False", and when they are different it evaluates to "True". Change-Id: Ic0aedbd1a5a5faafd0a1191b50ade90d46503057 --- tasks/swift_calculate_addresses.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/swift_calculate_addresses.yml b/tasks/swift_calculate_addresses.yml index 148b78c5..3f46aa22 100644 --- a/tasks/swift_calculate_addresses.yml +++ b/tasks/swift_calculate_addresses.yml @@ -126,6 +126,6 @@ - name: Set swift_dedicated_replication network if storage and replication addresses differ set_fact: - swift_dedicated_replication: "{{ swift_storage_address != swift_replication_address | bool }}" + swift_dedicated_replication: "{{ swift_storage_address != swift_replication_address }}" tags: - always