Skip to content

Commit

Permalink
Add fields to blueprint
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Veld committed Aug 31, 2023
1 parent a1d7103 commit 2986362
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
13 changes: 9 additions & 4 deletions pkg/config/resources/blueprint/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@ const TypeBlueprint string = "blueprint"
type Blueprint struct {
types.ResourceMetadata `hcl:",remain"`

Title string `hcl:"title,optional" json:"title,omitempty"`
Author string `hcl:"author,optional" json:"author,omitempty"`
Slug string `hcl:"slug,optional" json:"slug,omitempty"`
Description string `hcl:"description,optional" json:"description,omitempty"`
Title string `hcl:"title,optional" json:"title,omitempty"`
Organization string `hcl:"organization,optional" json:"organization,omitempty"`
Author string `hcl:"author,optional" json:"author,omitempty"`
Authors []string `hcl:"authors,optional" json:"authors,omitempty"`
Slug string `hcl:"slug,optional" json:"slug,omitempty"`
Icon string `hcl:"icon,optional" json:"icon,omitempty"`
Tags []string `hcl:"tags,optional" json:"tags,omitempty"`
Summary string `hcl:"summary,optional" json:"summary,omitempty"`
Description string `hcl:"description,optional" json:"description,omitempty"`
}
6 changes: 0 additions & 6 deletions pkg/config/resources/terraform/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,6 @@ func (p *TerraformProvider) generateOutput(path string) error {
return fmt.Errorf("unable to parse terraform output: %w", err)
}

// p.config.Output = output

p.log.Warn("output", "interface", output)

values := map[string]cty.Value{}
for k, v := range output {
m := v.(map[string]interface{})
Expand All @@ -182,8 +178,6 @@ func (p *TerraformProvider) generateOutput(path string) error {
}
}

p.log.Warn("output", "cty", cty.ObjectVal(values))

p.config.Output = cty.ObjectVal(values)

return nil
Expand Down

0 comments on commit 2986362

Please sign in to comment.