-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EC2 driver volumes parameter does not validate against Molecule schema. #140
Labels
ec2
Amazon EC2
Comments
Ref - #167 |
With recent PR merged in molecule (ansible/molecule#3765 and ansible/molecule#3898), now we can provide a schema for docker, podman, ec2 and I hope this will solve the issue (there may still be bugs or missing support). For the record:
That's why having a common schema is problematic. Adding a schema is a matter of:
(... and I won't have time to do it next week.) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the platform definition of the EC2 driver, the expected type for the
volumes
parameter is a list of dict - https://github.com/ansible/ansible-lint/blob/main/src/ansiblelint/schemas/molecule.jsonThe Molecule schema definition for volumes expects a list of string - https://github.com/ansible-community/molecule/blob/main/src/molecule/data/molecule.json#L263-L268
As such, molecule errors out when attempting to create instances when
volumes
is defined in the platform paramAn example of what a config for this might look like:
The text was updated successfully, but these errors were encountered: