Skip to content

Commit b0c40f1

Browse files
author
Justin Zhang
committed
Fix unhandled buildvar type error
- Fix unhandled buildvar type error when using HCL syntax - Upgrade golang version to 1.20
1 parent c7ba549 commit b0c40f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

builder/ucloud/uhost/step_create_instance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func (s *stepCreateInstance) Run(ctx context.Context, state multistep.StateBag)
9393
state.Put("instance", instance)
9494
// instance_id is the generic term used so that users can have access to the
9595
// instance id inside of the provisioners, used in step_provision.
96-
state.Put("instance_id", instance)
96+
state.Put("instance_id", instanceId)
9797

9898
if instance.BootDiskState != ucloudcommon.BootDiskStateNormal {
9999
ui.Say("Waiting for boot disk of instance initialized")

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/ucloud/packer-plugin-ucloud
22

3-
go 1.18
3+
go 1.20
44

55
require (
66
github.com/hashicorp/hcl/v2 v2.16.2

0 commit comments

Comments
 (0)