mirror of
https://github.com/hashicorp/packer.git
synced 2026-04-27 09:09:52 -04:00
use length instead of a nil test.
This commit is contained in:
parent
1bf3428263
commit
d9960fdaeb
1 changed files with 1 additions and 1 deletions
|
|
@ -150,7 +150,7 @@ func (s *stepCreateInstance) Run(ctx context.Context, state multistep.StateBag)
|
|||
state.Put("instance_id", instance.Id)
|
||||
|
||||
// Set instance tags
|
||||
if config.Tags != nil {
|
||||
if len(config.Tags) > 0 {
|
||||
resourceID := []string{instance.Id}
|
||||
tp := client.Resourcetags.NewCreateTagsParams(resourceID, "UserVm", config.Tags)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue