mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2026-01-06 06:49:36 -05:00
fix: set "latest" to tag when tag isn't specified (#117)
This commit is contained in:
parent
2101f471c3
commit
0ef85ad13f
1 changed files with 4 additions and 0 deletions
|
|
@ -264,6 +264,10 @@ func parseImageOptions(image string) internalPullImageOptions {
|
|||
pullOpts.Tag = image[prefixLength+tagIndex+1:]
|
||||
}
|
||||
|
||||
if pullOpts.Tag == "" {
|
||||
pullOpts.Tag = "latest"
|
||||
}
|
||||
|
||||
return pullOpts
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue