From 0dcdd27f34c9b76e97e42ca147d425afa647c0ce Mon Sep 17 00:00:00 2001 From: Kemal Hadimli Date: Thu, 16 Jun 2022 21:24:28 +0100 Subject: [PATCH] remove one level --- provider/provider.go | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/provider/provider.go b/provider/provider.go index 4f5ec2bf..4764e4ae 100644 --- a/provider/provider.go +++ b/provider/provider.go @@ -113,18 +113,9 @@ func (p *Provider) GetProviderConfig(_ context.Context, req *cqproto.GetProvider } data.Inline["resources"] = yaml.Node{ - Kind: yaml.MappingNode, HeadComment: "list of resources to fetch", - Content: []*yaml.Node{ - { - Kind: yaml.ScalarNode, - Value: "resources", - }, - { - Kind: yaml.SequenceNode, - Content: nodes, - }, - }, + Kind: yaml.SequenceNode, + Content: nodes, } yb, err := yaml.Marshal(data)