Skip to content

Commit

Permalink
Add helper for future vpc resources
Browse files Browse the repository at this point in the history
This helper will be used in autogenerated vpc resources that
don't have explicit parent path in schema

Signed-off-by: Anna Khmelnitsky <[email protected]>
  • Loading branch information
annakhm committed Jun 19, 2024
1 parent b1d6b2c commit 0683fa7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nsxt/policy_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -605,3 +605,8 @@ func getPolicyLbMonitorPortSchema() *schema.Schema {
Optional: true,
}
}

//lint:ignore U1000 Ignore unused function temporarily until used in autogenerated resource
func getVpcParentsFromContext(context utl.SessionContext) []string {
return []string{utl.DefaultOrgID, context.ProjectID, context.VPCID}
}

0 comments on commit 0683fa7

Please sign in to comment.