Skip to content

Commit

Permalink
Merge pull request #1467 from ksamoray/policy_path_parse_err
Browse files Browse the repository at this point in the history
Handle project path parsing properly
  • Loading branch information
ksamoray authored Nov 20, 2024
2 parents 8aa682d + d8910a4 commit 0cc3fe1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nsxt/policy_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,9 @@ func parseStandardPolicyPath(path string) ([]string, error) {
// append org and project
parents = append(parents, segments[2])
parents = append(parents, segments[4])
if len(segments) == 5 { // This is a project path, no further parsing is required
return parents, nil
}
idx = 5

if len(segments) > 6 && segments[5] == "vpcs" {
Expand Down

0 comments on commit 0cc3fe1

Please sign in to comment.