Skip to content

Commit 4398592

Browse files
author
mikatong
committed
update
1 parent d8a2a71 commit 4398592

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builder/tencentcloud/cvm/run_config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ var ValidCBSType = []string{
116116
}
117117

118118
func (cf *TencentCloudRunConfig) Prepare(ctx *interpolate.Context) []error {
119-
uuid := uuid.TimeOrderedUUID()
120-
packerId := fmt.Sprintf("packer_%s_%s", uuid[:8], uuid[9:13])
119+
timeOrderedUUID := uuid.TimeOrderedUUID()
120+
packerId := fmt.Sprintf("packer_%s_%s", timeOrderedUUID[:8], timeOrderedUUID[9:13])
121121
if cf.Comm.SSHKeyPairName == "" && cf.Comm.SSHTemporaryKeyPairName == "" &&
122122
cf.Comm.SSHPrivateKeyFile == "" && cf.Comm.SSHPassword == "" && cf.Comm.WinRMPassword == "" {
123123
//tencentcloud support key pair name length max to 25

0 commit comments

Comments
 (0)