Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Commit

Permalink
remove one level
Browse files Browse the repository at this point in the history
  • Loading branch information
disq committed Jun 20, 2022
1 parent 764bd2f commit 0dcdd27
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0dcdd27

Please sign in to comment.