Change name to tags
This commit is contained in:
parent
7081fe990b
commit
11271ead59
|
@ -35,7 +35,7 @@ type Config struct {
|
||||||
DropletName string `mapstructure:"droplet_name"`
|
DropletName string `mapstructure:"droplet_name"`
|
||||||
UserData string `mapstructure:"user_data"`
|
UserData string `mapstructure:"user_data"`
|
||||||
UserDataFile string `mapstructure:"user_data_file"`
|
UserDataFile string `mapstructure:"user_data_file"`
|
||||||
RunTags []string `mapstructure:"run_tags"`
|
Tags []string `mapstructure:"tags"`
|
||||||
|
|
||||||
ctx interpolate.Context
|
ctx interpolate.Context
|
||||||
}
|
}
|
||||||
|
@ -122,8 +122,8 @@ func NewConfig(raws ...interface{}) (*Config, []string, error) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if c.RunTags == nil {
|
if c.Tags == nil {
|
||||||
c.RunTags = make([]string, 0)
|
c.Tags = make([]string, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
if errs != nil && len(errs.Errors) > 0 {
|
if errs != nil && len(errs.Errors) > 0 {
|
||||||
|
|
|
@ -49,7 +49,7 @@ func (s *stepCreateDroplet) Run(_ context.Context, state multistep.StateBag) mul
|
||||||
Monitoring: c.Monitoring,
|
Monitoring: c.Monitoring,
|
||||||
IPv6: c.IPv6,
|
IPv6: c.IPv6,
|
||||||
UserData: userData,
|
UserData: userData,
|
||||||
Tags: c.RunTags,
|
Tags: c.Tags,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
err := fmt.Errorf("Error creating droplet: %s", err)
|
err := fmt.Errorf("Error creating droplet: %s", err)
|
||||||
|
|
Loading…
Reference in New Issue