fix(ecs): emit empty arrays for empty command, entryPoint and environment (#7941)

This commit is contained in:
Matheus Oliveira authored and GitHub committed 2026-11-16 09:11:03 -04:00
1 parent 1dadaee351
commit bbc6e1b0a1
2 files changed
+32 -3

No files matched your search

@@ -280,13 +280,13 @@ public class EcsResponseWriter {
n.set("portMappings", pms);
}
if (def.getEntryPoint() != null && !def.getEntryPoint().isEmpty()) {
if (def.getEntryPoint() != null) {
n.set("entryPoint", stringArray(def.getEntryPoint()));
}
if (def.getCommand() != null && !def.getCommand().isEmpty()) {
if (def.getCommand() != null) {
n.set("command", stringArray(def.getCommand()));
}
if (def.getEnvironment() != null && !def.getEnvironment().isEmpty()) {
if (def.getEnvironment() != null) {
n.set("environment", keyValuePairsNode(def.getEnvironment()));
}
if (def.getEnvironmentFiles() != null && !def.getEnvironmentFiles().isEmpty()) {