fix missing tag parse

This commit is contained in:
rmanach 2025-10-28 21:43:18 +01:00
parent 9e48569823
commit 999e80ae2f

View File

@ -188,6 +188,11 @@ func (s *Service) UnmarshalJSON(data []byte) error {
imageName = imageNameParts[0] imageName = imageNameParts[0]
} }
tag := "?"
if len(imageNameParts) > 1 {
tag = imageNameParts[1]
}
appName := ci.Details[0].Spec.Labels.Namespace appName := ci.Details[0].Spec.Labels.Namespace
*s = Service{ *s = Service{
@ -199,7 +204,7 @@ func (s *Service) UnmarshalJSON(data []byte) error {
Tag string Tag string
}{ }{
Name: imageName, Name: imageName,
Tag: imageNameParts[1], Tag: tag,
}, },
Networks: networks, Networks: networks,
Ports: ci.Details[0].Endpoint.Ports, Ports: ci.Details[0].Endpoint.Ports,