Skip to content

Commit

Permalink
Merge pull request #80 from masarakki/fix-scope
Browse files Browse the repository at this point in the history
fix a bug of variable scope
  • Loading branch information
stormcat24 committed Jun 14, 2016
2 parents d1e90cd + 88e0d39 commit 646f37b
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 646f37b

Please sign in to comment.