From dd096a3a86d14e35007d55e4f75958aad3ec06ac Mon Sep 17 00:00:00 2001 From: Leonard Cohnen Date: Thu, 28 Sep 2023 18:04:16 +0200 Subject: [PATCH] cli: omitempty infrastructure fields --- cli/internal/state/state.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/internal/state/state.go b/cli/internal/state/state.go index 4411814990..8d47b5b5dc 100644 --- a/cli/internal/state/state.go +++ b/cli/internal/state/state.go @@ -32,8 +32,8 @@ type Infrastructure struct { ClusterEndpoint string `yaml:"clusterEndpoint"` InitSecret string `yaml:"initSecret"` APIServerCertSANs []string `yaml:"apiServerCertSANs"` - Azure *Azure `yaml:"azure"` - GCP *GCP `yaml:"gcp"` + Azure *Azure `yaml:"azure,omitempty"` + GCP *GCP `yaml:"gcp,omitempty"` } // GCP describes the infra state related to GCP.