mirror of
https://github.com/mcuadros/ascode
synced 2024-11-22 17:02:03 +01:00
docker: register correct builtin function for Image.tags()
This commit is contained in:
parent
ca95f0f93c
commit
43ef5b3869
@ -144,7 +144,7 @@ func (i *image) Attr(name string) (starlark.Value, error) {
|
|||||||
name := i.ref.DockerReference()
|
name := i.ref.DockerReference()
|
||||||
return starlark.String(reference.Path(name)), nil
|
return starlark.String(reference.Path(name)), nil
|
||||||
case "tags":
|
case "tags":
|
||||||
return starlark.NewBuiltin("tags", i.builtinVersionFunc), nil
|
return starlark.NewBuiltin("tags", i.builtinTagsFunc), nil
|
||||||
case "version":
|
case "version":
|
||||||
return starlark.NewBuiltin("version", i.builtinVersionFunc), nil
|
return starlark.NewBuiltin("version", i.builtinVersionFunc), nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user