From b55cb83f83426d788fbe6c20bea6049ed9cfc1fe 2024-08-29 22:58:11 From: Branko Majic Date: 2024-08-29 22:58:11 Subject: [PATCH] Noticket: Added workaround to development process for outdated Molecule version: - Unfortunately, the Molecule version used for running tests does not generate valid Ruby 3.x code. For now just work around the way Hash is unpacked in function calls to optional arguments (until the test stack gets a revamp). --- diff --git a/docs/development.rst b/docs/development.rst index 5013913dff8082fcae4518e4d5347fd8d58ec1d5..fad800054b5cee9f54a822a52337c67b0d27151c 100644 --- a/docs/development.rst +++ b/docs/development.rst @@ -72,6 +72,20 @@ performing the following steps: workon majic-ansible-roles pip-sync +8. Patch the installed version of test runner (Molecule) for + compatibility with newer versions of Vagrant (bundled Ruby): + + .. note:: + This is an unfortunate consequence of *Majic Ansible Roles* + being dependent on an old/deprecated version of Ansible. This + will be addressed at some point in the future when the roles are + moved over to being compatible with latest (and supported) + versions of Ansible. + + :: + + sed -i -e 's/ Hash\[/ **Hash[/' ~/.virtualenvs/majic-ansible-roles/lib/python3.9/site-packages/molecule/provisioner/ansible/plugins/libraries/molecule_vagrant.py + Development conventions -----------------------