tripleo_all_nodes_data: sort enabled_services (idempotency)

Sorting the enabled_services list so we can have idempotent hieradata
where the content doesn't change between Ansible runs of the
tripleo_all_nodes_data action plugin.

Change-Id: I8f54265dbadf21da6badd690f5cb123b549cf48c
changes/71/718471/1
Emilien Macchi 3 years ago
parent 2a66695dbd
commit 9fefb30c5d

@ -170,8 +170,9 @@ class ActionModule(ActionBase):
enabled_services += self.all_nodes_extra_map_data.get(
'enabled_services', [])
# make enabled_services unique
# make enabled_services unique and sorted
enabled_services = list(set(enabled_services))
enabled_services.sort()
all_nodes['enabled_services'] = enabled_services

Loading…
Cancel
Save