From: lavado Date: Fri, 6 Dec 2019 22:53:01 +0000 (-0500) Subject: Change Ansible charm interpreter to python3 X-Git-Tag: v7.0.0rc1~3 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F45%2F8345%2F1;p=osm%2Fdevops.git Change Ansible charm interpreter to python3 Change-Id: I0c1b27251f4a6dd7a8899f547cd41897c55e5570 Signed-off-by: lavado --- 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)