fix: add chaos/deploy versiosn back to ps output
All checks were successful
continuous-integration/drone/push Build is passing

Fix to support alakazam parsing
This commit is contained in:
decentral1se 2024-07-16 22:47:47 +02:00
parent b5493ba059
commit e42a1bca29
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410

View File

@ -109,6 +109,8 @@ func showPSOutput(app appPkg.App, cl *dockerClient.Client, deployedVersion, chao
var containerStats map[string]string
if len(containers) == 0 {
containerStats = map[string]string{
"version": deployedVersion,
"chaos": chaosVersion,
"service": service.Name,
"image": "unknown",
"created": "unknown",
@ -119,6 +121,8 @@ func showPSOutput(app appPkg.App, cl *dockerClient.Client, deployedVersion, chao
} else {
container := containers[0]
containerStats = map[string]string{
"version": deployedVersion,
"chaos": chaosVersion,
"service": abraService.ContainerToServiceName(container.Names, app.StackName()),
"image": formatter.RemoveSha(container.Image),
"created": formatter.HumanDuration(container.Created),