We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e48656c commit d8a2a71Copy full SHA for d8a2a71
builder/tencentcloud/cvm/run_config.go
@@ -116,7 +116,8 @@ var ValidCBSType = []string{
116
}
117
118
func (cf *TencentCloudRunConfig) Prepare(ctx *interpolate.Context) []error {
119
- packerId := fmt.Sprintf("packer_%s", uuid.TimeOrderedUUID()[:8])
+ uuid := uuid.TimeOrderedUUID()
120
+ packerId := fmt.Sprintf("packer_%s_%s", uuid[:8], uuid[9:13])
121
if cf.Comm.SSHKeyPairName == "" && cf.Comm.SSHTemporaryKeyPairName == "" &&
122
cf.Comm.SSHPrivateKeyFile == "" && cf.Comm.SSHPassword == "" && cf.Comm.WinRMPassword == "" {
123
//tencentcloud support key pair name length max to 25
0 commit comments