Fix docker molecule-config schema validation failure - #44
Merged
Conversation
molecule-plugins 26.7.15 added a JSON schema for the docker driver (ansible-community/molecule-plugins#340) requiring platforms.command to be a string. The command: "" line here was already turned into a YAML null by the yq e --inplace prepare-playbook step regardless of the quoting, so it never actually applied as an empty string - only the new schema check started rejecting the resulting null. Removing the line keeps the same effective behavior (no command override) while passing validation. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
0x46616c6b
marked this pull request as ready for review
July 25, 2026 20:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
molecule-plugins26.7.15 added a JSON schema for the docker driver (ansible-community/molecule-plugins#340), which requiresplatforms[].commandto be a string.molecule-confighere setscommand: "", but theyq e --inplacestep that injects the prepare playbook always serializes this as YAMLnullregardless of the original quoting, so it never actually applied as an empty string in the generatedmolecule.yml.nullnow fails validation (ERROR Failed to validate .../molecule/github/molecule.yml), breaking Molecule integration jobs in consuming repos (e.g. Bump Userli to 6.10.2 ansible-role-userli#136) even though the role change itself is unrelated.command: ""line keeps the same effective behavior (no command override, same as the null it always produced) while passing schema validation.Test plan