Skip to content

Commit

Permalink
add relationships when creating a quota for a space
Browse files Browse the repository at this point in the history
  • Loading branch information
jcvrabo committed Dec 8, 2023
1 parent b57c565 commit 17c9a90
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions quota/quota.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ func (m *Manager) createSpaceQuota(input config.SpaceQuota, space *resource.Spac
}
}
} else {
quota.Relationships = &resource.SpaceQuotaRelationships{
Organization: space.Relationships.Organization,
Spaces: &resource.ToManyRelationships{Data: []resource.Relationship{{GUID: space.GUID}}},
}
createdQuota, err := m.CreateSpaceQuota(quota)
if err != nil {
return err
Expand Down

0 comments on commit 17c9a90

Please sign in to comment.