Skip to content

Commit

Permalink
fix aws client bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Glonek committed Sep 30, 2022
1 parent 23948e6 commit a281c74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backendAws.go
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,8 @@ func (d *backendAws) DeployCluster(v backendVersion, name string, nodeCount int,
return errors.New("could not find chosen template")
}
} else {
templateId, err := d.getAmi(a.opts.Config.Backend.Region, v)
var err error
templateId, err = d.getAmi(a.opts.Config.Backend.Region, v)
if err != nil {
return err
}
Expand Down

0 comments on commit a281c74

Please sign in to comment.