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.
2 parents 11c559e + 4398592 commit d605d92Copy full SHA for d605d92
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])
+ timeOrderedUUID := uuid.TimeOrderedUUID()
120
+ packerId := fmt.Sprintf("packer_%s_%s", timeOrderedUUID[:8], timeOrderedUUID[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