Skip to content

Commit

Permalink
Merge pull request #95 from Clever/INFRANG-4077
Browse files Browse the repository at this point in the history
fix build due to a typo
  • Loading branch information
tnsardesai authored Oct 21, 2020
2 parents e050764 + 2b8a1a5 commit 26b87fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/sfncli/ecs.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ func lookupARN() (string, error) {
}

func arnFromMetadataURI() (string, error) {
uri, ok := os.LookupEnv(ecsContainerMetadaUriEnvVar)
uri, ok := os.LookupEnv(ecsContainerMetadataUriEnvVar)
if !ok {
return "", fmt.Errorf("%s not set", ecsContainerMetadaUriEnvVar)
return "", fmt.Errorf("%s not set", ecsContainerMetadataUriEnvVar)
}
resp, err := http.Get(uri + "/task")
if err != nil {
Expand All @@ -89,9 +89,9 @@ func arnFromMetadataURI() (string, error) {
}

func arnFromMetadataFile() (string, error) {
filePath, ok := os.LookupEnv(ecsContainerMetadaFileEnvVar)
filePath, ok := os.LookupEnv(ecsContainerMetadataFileEnvVar)
if !ok {
return "", fmt.Errorf("%s not set", ecsContainerMetadaFileEnvVar)
return "", fmt.Errorf("%s not set", ecsContainerMetadataFileEnvVar)
}
// wait for the file to exist
ticker := time.NewTicker(1 * time.Second)
Expand Down

0 comments on commit 26b87fc

Please sign in to comment.