Skip to content

Commit

Permalink
fix a bug of variable scope
Browse files Browse the repository at this point in the history
  • Loading branch information
masarakki committed Jun 10, 2016
1 parent d1e90cd commit 88e0d39
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions task/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,12 @@ func CreateTaskDefinition(taskDefName string, data string, basedir string, manag
for _, envfile := range container.EnvFiles {
var path string
if envfile[0:10] == "https://s3" {
path, err := downloadS3(manager, envfile)
_path, err := downloadS3(manager, envfile)
if err != nil {
return nil, err
}
defer os.Remove(path)
path = _path
defer os.Remove(_path)
} else if filepath.IsAbs(envfile) {
path = envfile
} else {
Expand Down

0 comments on commit 88e0d39

Please sign in to comment.