Skip to content

Commit

Permalink
Only install docker-ce-cli with docker-ce
Browse files Browse the repository at this point in the history
In garethr#740 I mistakenly added code that manages the docker-ce-cli package
when managing the "docker" package. The docker-ce-cli package should
only be managed when also managing the docker-ce package.

Fixes #797
  • Loading branch information
kenyon authored and vchepkov committed May 5, 2022
1 parent 27e03e6 commit f9de6a1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
4 changes: 0 additions & 4 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@
ensure => $ensure,
name => $docker::docker_package_name,
}))
ensure_resource('package', 'docker-ce-cli', merge($docker_hash, {
ensure => $ensure,
name => $docker::docker_ce_cli_package_name,
}))

if $ensure == 'absent' {
ensure_resource('package', $dependent_packages, {
Expand Down
6 changes: 0 additions & 6 deletions spec/shared_examples/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,6 @@
'name' => values['docker_package_name'],
)
}
it {
is_expected.to contain_package('docker-ce-cli').with(
'ensure' => ensure_value,
'name' => _params['docker_ce_cli_package_name'],
)
}

if ensure_value == 'absent'
_params['dependent_packages'].each do |dependent_package|
Expand Down

0 comments on commit f9de6a1

Please sign in to comment.