Skip to content

Commit

Permalink
fixed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsinai committed Sep 8, 2022
1 parent 527be11 commit ab0eeb0
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions port/resource_port_blueprint.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,24 +154,6 @@ func readBlueprint(ctx context.Context, d *schema.ResourceData, m interface{}) d
return diags
}

func writeBlueprintRelationsToResource(d *schema.ResourceData, relations []*cli.Relation) {
rels := schema.Set{F: func(i interface{}) int {
id := (i.(map[string]interface{}))["identifier"].(string)
return schema.HashString(id)
}}
for _, v := range relations {
r := map[string]interface{}{
"identifier": v.Identifier,
"title": v.Title,
"target": v.Target,
"required": v.Required,
"many": v.Many,
}
rels.Add(r)
}
d.Set("relations", &rels)
}

func writeBlueprintFieldsToResource(d *schema.ResourceData, b *cli.Blueprint) {
d.SetId(b.Identifier)
d.Set("title", b.Title)
Expand Down

0 comments on commit ab0eeb0

Please sign in to comment.