commit c6afcc818e55d127932613a37c1bcb58ac472c08
Author: Ben Nemec <email address hidden>
Date: Thu Mar 24 19:09:30 2016 +0000
Generate most of the pystache context automatically
For the most part, the pystache context is just a list of values from
undercloud.conf. Rather than maintain this list manually, including
duplicate default values (some of which are bad, like the "unset"
password defaults), let's just generate the context dict based on
the options we can look up from undercloud.py.
This also avoids masking mistakes where a value is added to the
context, but a corresponding config opt is not added to
undercloud.conf, resulting in an unconfigurable "option".
Closes-Bug: 1598846
Change-Id: I70cc0f98e4f869417e22270a71f1f18525a06aac
(cherry picked from commit c03d2ccbbc46398b898f6fbaf90e296e749a4ca8)
(cherry picked from commit ecb3d7e23db363c8a8a8dc2ade84f5531377da9e)
Reviewed: https:/ /review. openstack. org/337250 /git.openstack. org/cgit/ openstack/ instack- undercloud/ commit/ ?id=c6afcc818e5 5d127932613a37c 1bcb58ac472c08
Committed: https:/
Submitter: Jenkins
Branch: stable/liberty
commit c6afcc818e55d12 7932613a37c1bcb 58ac472c08
Author: Ben Nemec <email address hidden>
Date: Thu Mar 24 19:09:30 2016 +0000
Generate most of the pystache context automatically
For the most part, the pystache context is just a list of values from conf. Rather than maintain this list manually, including
undercloud.
duplicate default values (some of which are bad, like the "unset"
password defaults), let's just generate the context dict based on
the options we can look up from undercloud.py.
This also avoids masking mistakes where a value is added to the conf, resulting in an unconfigurable "option".
context, but a corresponding config opt is not added to
undercloud.
Closes-Bug: 1598846 417e22270a71f1f 18525a06aac b898f6fbaf90e29 6e749a4ca8) 8a8a8dc2ade84f5 531377da9e)
Change-Id: I70cc0f98e4f869
(cherry picked from commit c03d2ccbbc46398
(cherry picked from commit ecb3d7e23db363c