Skip to content

Commit

Permalink
fix: set "latest" to tag when tag isn't specified (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke authored Jan 6, 2021
1 parent 2101f47 commit 0ef85ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/resource_docker_image_funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,10 @@ func parseImageOptions(image string) internalPullImageOptions {
pullOpts.Tag = image[prefixLength+tagIndex+1:]
}

if pullOpts.Tag == "" {
pullOpts.Tag = "latest"
}

return pullOpts
}

Expand Down

0 comments on commit 0ef85ad

Please sign in to comment.