Change name to tags

This commit is contained in:
Mike Zupan 2018-07-30 07:55:06 -06:00
parent 7081fe990b
commit 11271ead59
2 changed files with 4 additions and 4 deletions

View File

@ -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 {

View File

@ -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)