From 11271ead5925fea25e829d47298946b3aa0c7a42 Mon Sep 17 00:00:00 2001 From: Mike Zupan Date: Mon, 30 Jul 2018 07:55:06 -0600 Subject: [PATCH] Change name to tags --- builder/digitalocean/config.go | 6 +++--- builder/digitalocean/step_create_droplet.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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)