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

up_args parameter for docker_compose doesn't handle argument with value #996

Open
mcarrolle opened this issue Sep 12, 2024 · 0 comments
Open
Labels

Comments

@mcarrolle
Copy link

Describe the Bug

When using argument with value like --pull always in up_args argument an error is thrown:
change from 'absent' to 'present' failed: Execution of /usr/bin/docker compose -f /myproject/compose.yml -p myproject up --pull always -d --remove-orphans' returned 16: unknown flag: --pull always

Expected Behavior

Execution doesn't fail.
Changing type of up_args from string to Array fix the issue

Steps to Reproduce

Use the following code:

docker_compose { "myproject":
      ensure        => present,
      compose_files => ["/myproject/compose.yml"],
      up_args       => ['--pull','always'],
    }

Environment

  • Version module [10.0.1]
  • Version docker engine : 27.2.1
  • Platform [Debian 11]
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