Change Ansible charm interpreter to python3 45/8345/1
authorlavado <glavado@whitestack.com>
Fri, 6 Dec 2019 22:53:01 +0000 (17:53 -0500)
committerlavado <glavado@whitestack.com>
Fri, 6 Dec 2019 22:53:01 +0000 (17:53 -0500)
Change-Id: I0c1b27251f4a6dd7a8899f547cd41897c55e5570
Signed-off-by: lavado <glavado@whitestack.com>
descriptor-packages/tools/charm-generator/generator/ansible-charm/templates/ansible_lib.py.j2

index 1d6165e..afbf162 100644 (file)
@@ -50,7 +50,7 @@ def create_hosts(cfg, hosts):
         f.write('[{}]\n'.format(hosts))
         h1 = '{0} ansible_connection=ssh ansible_ssh_user={1} ansible_ssh_pass={2} ' \
              'ansible_ssh_private_key_file=~/.ssh/id_juju_sshproxy ' \
-             'ansible_python_interpreter=/usr/bin/python\n'.format(cfg['ssh-hostname'], cfg['ssh-username'],
+             'ansible_python_interpreter=/usr/bin/python3\n'.format(cfg['ssh-hostname'], cfg['ssh-username'],
                                                                     cfg['ssh-password'])
         f.write(h1)