Skip to content

Commit ff83aa4

Browse files
authored
Fix iterate items for array (#44)
1 parent fc90145 commit ff83aa4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

port/resource_port_blueprint.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,9 @@ func blueprintResourceToBody(d *schema.ResourceData) (*cli.Blueprint, error) {
614614

615615
if defaultItemsOk && len(di) != 0 && propFields.Type == "array" {
616616
propFields.Default = di
617+
}
617618

619+
if propFields.Type == "array" {
618620
if i, ok := p["items"]; ok && i != nil {
619621
items := make(map[string]any)
620622
for key, value := range i.(map[string]any) {

0 commit comments

Comments
 (0)