fix missing tag parse
This commit is contained in:
parent
9e48569823
commit
999e80ae2f
@ -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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user