Merge "Fix passwords.yml generation with vault encryption on Python 3"

This commit is contained in:
Zuul 2020-04-22 17:59:25 +00:00 committed by Gerrit Code Review
commit 1dc5cf0c65
3 changed files with 1 additions and 7 deletions

View File

@ -57,7 +57,7 @@ def kolla_mergepwd(module, old_path, new_path, final_path):
def create_vault_password_file(module):
"""Create a vault password file."""
with tempfile.NamedTemporaryFile(delete=False) as f:
f.write(module.params['vault_password'])
f.write(module.params['vault_password'].encode())
return f.name

View File

@ -49,10 +49,6 @@ deps =
commands = {posargs}
[testenv:ansible]
# FIXME(mgoddard): Ansible playbooks do not yet support Python 3, so we need to run these
# tests using Python 2 for the time being.
basepython = python2
usedevelop = True
# Create the virtualenv with access to system site packages, as this is
# required to use the python and apt modules, which are not available via PyPI.
sitepackages = True

View File

@ -21,8 +21,6 @@
tox_envlist: ansible
required-projects:
- name: openstack/requirements
# TODO(mgoddard): Remove when Ansible playbooks support Python 3.
override-checkout: stable/train
irrelevant-files:
- ^.*\.rst$
- ^doc/.*