Skip to content

Commit

Permalink
Add json tags on cloudinit Metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
yitsushi committed Dec 13, 2021
1 parent 12eb536 commit 7940f1d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/cloudinit/metadata.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cloudinit

type Metadata struct {
InstanceID string `yaml:"instance_id"`
LocalHostname string `yaml:"local_hostname"`
Platform string `yaml:"platform"`
ClusterName string `yaml:"cluster_name"`
InstanceID string `yaml:"instance_id",json:"instance_id"`
LocalHostname string `yaml:"local_hostname",json:"local_hostname"`
Platform string `yaml:"platform",json:"platform"`
ClusterName string `yaml:"cluster_name",json:"cluster_name"`
}

0 comments on commit 7940f1d

Please sign in to comment.