Skip to content
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

Additional Erroroutput for docker-compose config #1000

Open
Tobias-HRZ opened this issue Oct 11, 2024 · 0 comments
Open

Additional Erroroutput for docker-compose config #1000

Tobias-HRZ opened this issue Oct 11, 2024 · 0 comments
Labels

Comments

@Tobias-HRZ
Copy link

Describe the Bug

I was working on my docker-compose.yaml and had a dependence issue. But the error-message I received was very cryptic:

"Could not evaluate: undefined method `[]' for false:FalseClass"

I could identify the problem by checking the traces and eventually find the command which produced the problem.

Expected Behavior

The docker-compose file is check via "docker-compose config" in
"puppetlabs-docker/lib/puppet/provider/docker_compose/ruby.rb" --> line 30:

compose_output = Puppet::Util::Yaml.safe_load(execute([command(:docker)] + args, combine: false), [Symbol])

If one executes the "docker-compose config"-command directly, one does get a correct error message.
So it would be nice, if the "compose_output" is checked for error messages and output them accordingly. This might help people in the future.

Thanks in advance and kind regrads,
Tobias

Environment

  • docker-compose version 1.29.2, build 5becea4c
  • Platform [Ubuntu 24.04]
@Tobias-HRZ Tobias-HRZ added the bug label Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant