Skip to content

Commit

Permalink
Fix value for openstack_host_manage_hosts_file
Browse files Browse the repository at this point in the history
The current resulting value for the group var calculation of
openstack_host_manage_hosts_file is \"True\"\n instead of
True.

This results in the conditional failing in the openstack_hosts
role because the boolean evaluation of this value results in
False.

This patch removes the use of continuation so that the
resulting value is boolean instead of a string.

Change-Id: I9b240137ab013d5b05d1f154250a77253a913329
Closes-Bug: #1631975
  • Loading branch information
Jesse Pretorius committed Oct 11, 2016
1 parent 0d9eb88 commit ded68dd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions playbooks/inventory/group_vars/hosts.yml
Expand Up @@ -19,5 +19,4 @@ openstack_hosts_package_state: "{{ package_state }}"
security_package_state: "{{ package_state }}"

#Disable /etc/hosts management if unbound DNS resolution containers exist
openstack_host_manage_hosts_file: >
"{{ groups['unbound_all'] is not defined or groups['unbound_all'] | length < 1 }}"
openstack_host_manage_hosts_file: "{{ groups['unbound_all'] is not defined or groups['unbound_all'] | length < 1 }}"

0 comments on commit ded68dd

Please sign in to comment.