You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the run starts we see an error that this list isn't an array.
CRITICAL Failed to validate /default/molecule.yml
["{'LDAP_ORGANISATION': 'blabla', 'LDAP_DOMAIN': 'bla.local', 'LDAP_ADMIN_PASSWORD': 'reallygoodpassword', 'LDAP_READONLY_USER': 'true', 'LDAP_READONLY_USER_USERNAME': 'bla_user', 'LDAP_READONLY_USER_PASSWORD': 'reallygoodpassword'} is not of type 'array'"]
Issue Type
Using env in a molecule.yml isn't processed as it's marked as an array. Adding a - to the list doesn't solve it either.
Molecule and Ansible details
Molecule installation method (one of):
Ansible installation method (one of):
Detail any linters or test runners used:
Desired Behavior
Before the latest patch, the molecule container was created fine and ansible ran fine on the created container.
Actual Behaviour
We are using an openldap container (docker.io/osixia/openldap:1.4.0) which requires several environment inputs:
When the run starts we see an error that this list isn't an array.
CRITICAL Failed to validate /default/molecule.yml
["{'LDAP_ORGANISATION': 'blabla', 'LDAP_DOMAIN': 'bla.local', 'LDAP_ADMIN_PASSWORD': 'reallygoodpassword', 'LDAP_READONLY_USER': 'true', 'LDAP_READONLY_USER_USERNAME': 'bla_user', 'LDAP_READONLY_USER_PASSWORD': 'reallygoodpassword'} is not of type 'array'"]
So we added a "-" in front:
The molecule run starts, however the container creation now fails with the error:
argument 'env' is of type <class 'list'> and we were unable to convert to dict: <class 'list'> cannot be converted to a dict
We also tried to put the env vars into a separate env.yml file, but this didn't work either.
The text was updated successfully, but these errors were encountered: