tht validate templates skips hiera interpolation checks when ean via py3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Medium
|
Bogdan Dobrelya |
Bug Description
For https:/
$ python3 ./tools/
$ python3 tools/yaml-
Validating puppet/
ERROR: Did not find expected number of environments containing the EndpointMap parameter. If you meant to add or remove one of these environments then you also need to update this tool.
Mismatched parameter definitions: 0
Validation failed on:
endpoint_map.yaml
tls-endpoints-
tls-everywhere-
tls-endpoints-
no-tls-
$python tools/yaml-
Validating puppet/
ERROR: Missed %{hiera('... NETWORK ...')} interpolation in str_replace[
ERROR: Did not find expected number of environments containing the EndpointMap parameter. If you meant to add or remove one of these environments then you also need to update this tool.
Mismatched parameter definitions: 0
Validation failed on:
puppet/
endpoint_map.yaml
no-tls-
tls-endpoints-
tls-endpoints-
tls-everywhere-
Changed in tripleo: | |
importance: | Undecided → Medium |
milestone: | none → stein-3 |
status: | New → Triaged |
So this boils down to
import re 'value; config_ settings; map_merge; 0;apache: :ip;str_ replace; params; NETWORK; get_param; 0' r'\\;str\ \_replace\ \;params\ \;\S*?net' ,re.IGNORECASE) re.escape( path_str) )
path_str=
query = re.compile(
query.search(
<_sre.SRE_Match object at 0x7f39c5f586b0>
works for py2, but returns nothing for py3