Skip to content

Commit 412ca35

Browse files
committed
fix: modify source_image_family
1 parent ff75b75 commit 412ca35

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

builder/tencentcloud/cvm/builder.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,9 @@ func (b *Builder) Run(ctx context.Context, ui packersdk.Ui, hook packersdk.Hook)
104104
&stepCheckSourceImageFamily{
105105
b.config.SourceImageId,
106106
b.config.SourceImageName,
107-
b.config.SourceImageFamily,
108107
},
109108
&stepCheckSourceImage{
110109
b.config.SourceImageId,
111-
b.config.SourceImageName,
112-
b.config.SourceImageFamily,
113110
},
114111
&stepConfigKeyPair{
115112
Debug: b.config.PackerDebug,

builder/tencentcloud/cvm/step_check_source_image.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ import (
1313
)
1414

1515
type stepCheckSourceImage struct {
16-
sourceImageId string
17-
sourceImageName string
18-
sourceImageFamily string
16+
sourceImageId string
1917
}
2018

2119
func (s *stepCheckSourceImage) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction {

builder/tencentcloud/cvm/step_check_source_image_family.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ import (
1212
)
1313

1414
type stepCheckSourceImageFamily struct {
15-
sourceImageId string
16-
sourceImageName string
17-
sourceImageFamily string
15+
sourceImageId string
16+
sourceImageName string
1817
}
1918

2019
func (s *stepCheckSourceImageFamily) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction {

0 commit comments

Comments
 (0)