Skip to content

Commit

Permalink
handle --noop on docker::image
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaibuzgau committed Jul 25, 2018
1 parent 9a6bdaa commit ef069c6
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions manifests/image.pp
Original file line number Diff line number Diff line change
Expand Up @@ -140,17 +140,7 @@
timeout => $exec_timeout,
logoutput => true,
}
} elsif $ensure == 'latest' or $image_tag == 'latest' {
exec { "echo 'Update of ${image_arg} complete'":
environment => $exec_environment,
path => $exec_path,
timeout => $exec_timeout,
onlyif => $image_install,
require => File[$update_docker_image_path],
provider => $exec_provider,
logoutput => true,
}
} elsif $ensure == 'present' {
} elsif $ensure == 'latest' or $image_tag == 'latest' or $ensure == 'present' {
exec { $image_install:
unless => $_image_find,
environment => $exec_environment,
Expand Down

0 comments on commit ef069c6

Please sign in to comment.