commit 520c96759237b4baac6cd8c5b7a3c04e1e1b94fb
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)
Reviewed: https:/ /review. openstack. org/337243 /git.openstack. org/cgit/ openstack/ instack- undercloud/ commit/ ?id=520c9675923 7b4baac6cd8c5b7 a3c04e1e1b94fb
Committed: https:/
Submitter: Jenkins
Branch: stable/mitaka
commit 520c96759237b4b aac6cd8c5b7a3c0 4e1e1b94fb
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)
Change-Id: I70cc0f98e4f869
(cherry picked from commit c03d2ccbbc46398