From 7940f1d30e2ff077240192143856f2f8b3caa215 Mon Sep 17 00:00:00 2001 From: Balazs Nadasdi Date: Mon, 13 Dec 2021 15:01:11 +0100 Subject: [PATCH] Add json tags on cloudinit Metadata --- client/cloudinit/metadata.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/cloudinit/metadata.go b/client/cloudinit/metadata.go index 8444c4b9..939d25fe 100644 --- a/client/cloudinit/metadata.go +++ b/client/cloudinit/metadata.go @@ -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"` }