tripleo-heat-templates/extraconfig
Michele Baldessari 5b6984eb0f Fixup ipaclient.yaml for python3
This change does two things:
1. it uses print() which is the only supported way of calling print
   in python3 (and still works with python2). This way we avoid the
   following error:

SyntaxError: Missing parentheses in call to 'print'. Did you mean print('...')?

2. It uses the PythonInterpreter variable to choose the python
   interpreter

Tested and we correctly get the right wanted interpreter:
...
fqdn=`echo $data | /usr/bin/python3 -c 'import json,sys;obj=json.load(sys.stdin);print(obj.get("join", {}).get("hostname", ""))'`
...

Change-Id: I6e68664c650d0481a9f0cfd21985434d8c75e1a2
Co-Authored-By: Luca Miccini <lmiccini@redhat.com>
2019-03-21 07:02:08 +00:00
..
all_nodes Change template names to rocky 2018-05-09 08:28:42 +02:00
nova_metadata Spliting compact services in multiples lines 2018-12-12 20:57:24 +00:00
post_deploy Support ctlplane subnet host routes from undercloud.conf 2019-03-12 16:01:22 +01:00
pre_deploy/rhel-registration Correct file modes for rpmlint failures 2018-12-14 13:21:28 -07:00
pre_network Merge "Remove unused resources of PreNetworkConfig for NFV" 2019-03-05 19:36:18 +00:00
services Fixup ipaclient.yaml for python3 2019-03-21 07:02:08 +00:00
tasks Merge "Python 3 compatibility: fix has_key" 2018-11-23 12:28:29 +00:00