From 878d3900216fdd1ee7e83d4dc628007513dc1d37 Mon Sep 17 00:00:00 2001 From: Marius Rubin Date: Thu, 18 Jan 2018 18:19:16 +0000 Subject: [PATCH 1/2] Added missing assignment to ECS match statement --- context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context.go b/context.go index de92eb78..8200a4c5 100644 --- a/context.go +++ b/context.go @@ -175,7 +175,7 @@ func GetCurrentContainerID() string { strLines := string(lines) if id := matchDockerCurrentContainerID(strLines); id != "" { return id - } else if matchECSCurrentContainerID(strLines); id != "" { + } else if id:= matchECSCurrentContainerID(strLines); id != "" { return id } } From 90aec747805c318fd9cb3438b50f1c13da04bb0c Mon Sep 17 00:00:00 2001 From: Marius Rubin Date: Thu, 18 Jan 2018 18:37:11 +0000 Subject: [PATCH 2/2] Addressed formatting issue. --- context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context.go b/context.go index 8200a4c5..80a6bd7d 100644 --- a/context.go +++ b/context.go @@ -175,7 +175,7 @@ func GetCurrentContainerID() string { strLines := string(lines) if id := matchDockerCurrentContainerID(strLines); id != "" { return id - } else if id:= matchECSCurrentContainerID(strLines); id != "" { + } else if id := matchECSCurrentContainerID(strLines); id != "" { return id } }