]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
Fix config_template to consistently order sections
authorAndy McCrae <andy.mccrae@gmail.com>
Fri, 16 Mar 2018 15:24:53 +0000 (15:24 +0000)
committerSébastien Han <seb@redhat.com>
Wed, 21 Mar 2018 05:11:26 +0000 (06:11 +0100)
commit8eda84644a6acaead8564af31822042d55353aa1
treed0e6105126a3c399f996f3e51e63fe2bf8554106
parent93b27421a4d5390436c46fd7e727fccfd2ec1e3d
Fix config_template to consistently order sections

In ec042219e64a321fa67fce0384af76eeb238c645 we added OrderedDict and
sorted to be able to preserve order for config_template k,v pairs inside
a section.

This patch adds a similar ordering for the sections themselves, which
could still change order and intiiate handler restarts.

OrderedDict isn't needed because we use .items() to return a list that
can then be sorted().

(cherry picked from commit fe4ba9d1353abb49775d5541060a55919978f45f)
plugins/actions/_v1_config_template.py
plugins/actions/_v2_config_template.py