From 5342d2d18451cc8756294f1ee8b278d4a3b76150 Mon Sep 17 00:00:00 2001 From: lavado Date: Fri, 6 Dec 2019 17:53:01 -0500 Subject: [PATCH] Change Ansible charm interpreter to python3 Change-Id: I0c1b27251f4a6dd7a8899f547cd41897c55e5570 Signed-off-by: lavado --- .../generator/ansible-charm/templates/ansible_lib.py.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/descriptor-packages/tools/charm-generator/generator/ansible-charm/templates/ansible_lib.py.j2 b/descriptor-packages/tools/charm-generator/generator/ansible-charm/templates/ansible_lib.py.j2 index 1d6165e4..afbf162d 100644 --- a/descriptor-packages/tools/charm-generator/generator/ansible-charm/templates/ansible_lib.py.j2 +++ b/descriptor-packages/tools/charm-generator/generator/ansible-charm/templates/ansible_lib.py.j2 @@ -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) -- 2.25.1