When overrides are used in config templates the previous behavior was to
not convert the integers to strings. The previous change,
I8986688efbd7e05ba17c3d61ee032dcc29d3b05d changed this behavior. The
reason why try-except was used instead of isnumeric is because isnumeric
only accepts positive numbers, while we could strip signs off the ends,
that could alter things past what we want.
Closes-Bug: #1705469
Change-Id: I5927cdcd06b4398c76b4e4d33f7a21335a6abbf2
Signed-off-by: Matthew Thode <email address hidden>
Reviewed: https:/ /review. openstack. org/486754 /git.openstack. org/cgit/ openstack/ openstack- ansible- plugins/ commit/ ?id=78246064490 2f391cadb83e61c 882956c0e569ee
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 782460644902f39 1cadb83e61c8829 56c0e569ee
Author: Matthew Thode <email address hidden>
Date: Mon Jul 24 16:05:12 2017 -0500
Do not convert integers to strings
When overrides are used in config templates the previous behavior was to d7e05ba17c3d61e e032dcc29d3b05d changed this behavior. The
not convert the integers to strings. The previous change,
I8986688efb
reason why try-except was used instead of isnumeric is because isnumeric
only accepts positive numbers, while we could strip signs off the ends,
that could alter things past what we want.
Closes-Bug: #1705469
Change-Id: I5927cdcd06b439 8c76b4e4d33f7a2 1335a6abbf2
Signed-off-by: Matthew Thode <email address hidden>