Better varibable naming.

This commit is contained in:
Andrew Starr-Bochicchio 2019-02-13 18:55:27 -05:00
parent ee430d9a40
commit 37b3305301
1 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ func (p *PostProcessor) Configure(raws ...interface{}) error {
errs, fmt.Errorf("Error parsing space_object_name template: %s", err))
}
templates := map[string]*string{
requiredArgs := map[string]*string{
"api_token": &p.config.APIToken,
"spaces_key": &p.config.SpacesKey,
"spaces_secret": &p.config.SpacesSecret,
@ -120,7 +120,7 @@ func (p *PostProcessor) Configure(raws ...interface{}) error {
"image_name": &p.config.Name,
"image_regions": &p.config.ImageRegions[0],
}
for key, ptr := range templates {
for key, ptr := range requiredArgs {
if *ptr == "" {
errs = packer.MultiErrorAppend(
errs, fmt.Errorf("%s must be set", key))