Skip to content

Commit

Permalink
Allow all 3.x docker-compose minor versions
Browse files Browse the repository at this point in the history
No major changes affecting this module compared to the previous max
compatibility with docker-compose 3.6; see
https://docs.docker.com/compose/compose-file/compose-versioning/#version-37

Fixes puppetlabs/puppetlabs-docker#575
  • Loading branch information
runejuhl committed Jun 2, 2020
1 parent bf8ab97 commit e936a68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/docker_compose/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def exists?
compose_containers.uniq!
# rubocop:enable Style/StringLiterals
case compose_file['version']
when %r{^2(\.[0-3])?$}, %r{^3(\.[0-6])?$}
when %r{^2(\.[0-3])?$}, %r{^3(\.\d+)?$}
compose_services.deep_merge!(compose_file['services'])
# in compose v1 "version" parameter is not specified
when nil
Expand Down

0 comments on commit e936a68

Please sign in to comment.