diff --git a/builder/digitalocean/config.go b/builder/digitalocean/config.go index f2f389b7a..bb4175972 100644 --- a/builder/digitalocean/config.go +++ b/builder/digitalocean/config.go @@ -35,7 +35,7 @@ type Config struct { DropletName string `mapstructure:"droplet_name"` UserData string `mapstructure:"user_data"` UserDataFile string `mapstructure:"user_data_file"` - RunTags []string `mapstructure:"run_tags"` + Tags []string `mapstructure:"tags"` ctx interpolate.Context } @@ -122,8 +122,8 @@ func NewConfig(raws ...interface{}) (*Config, []string, error) { } } - if c.RunTags == nil { - c.RunTags = make([]string, 0) + if c.Tags == nil { + c.Tags = make([]string, 0) } if errs != nil && len(errs.Errors) > 0 { diff --git a/builder/digitalocean/step_create_droplet.go b/builder/digitalocean/step_create_droplet.go index a67e28e79..9c6c5712a 100644 --- a/builder/digitalocean/step_create_droplet.go +++ b/builder/digitalocean/step_create_droplet.go @@ -49,7 +49,7 @@ func (s *stepCreateDroplet) Run(_ context.Context, state multistep.StateBag) mul Monitoring: c.Monitoring, IPv6: c.IPv6, UserData: userData, - Tags: c.RunTags, + Tags: c.Tags, }) if err != nil { err := fmt.Errorf("Error creating droplet: %s", err)