Skip to content

Commit f8b5842

Browse files
committed
Move hook and communicator definitions to packer-plugin-sdk
1 parent 8cb0298 commit f8b5842

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

builder/tencentcloud/cvm/builder.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88

99
"github.com/hashicorp/hcl/v2/hcldec"
1010
"github.com/hashicorp/packer/helper/communicator"
11-
"github.com/hashicorp/packer/packer"
1211
"github.com/hashicorp/packer/packer-plugin-sdk/common"
1312
"github.com/hashicorp/packer/packer-plugin-sdk/multistep"
1413
"github.com/hashicorp/packer/packer-plugin-sdk/multistep/commonsteps"
@@ -65,7 +64,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, []string, error) {
6564
return nil, nil, nil
6665
}
6766

68-
func (b *Builder) Run(ctx context.Context, ui packersdk.Ui, hook packer.Hook) (packersdk.Artifact, error) {
67+
func (b *Builder) Run(ctx context.Context, ui packersdk.Ui, hook packersdk.Hook) (packersdk.Artifact, error) {
6968
cvmClient, vpcClient, err := b.config.Client()
7069
if err != nil {
7170
return nil, err

0 commit comments

Comments
 (0)