Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated to export and docs #770

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Docs/policy-assignments.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ This example generates two assignments at the "prod" leaf per scope:

## Assignment scopes and excluded scopes

`scope` is required exactly once in each tree branch. Excluded scopes (`notScope`) are cumulative from `global-settings.json` and the entire tree branch; however, once a scope is defined `notScope` may not be defined at any child node.
`scope` is required exactly once in each tree branch. Excluded scopes (`notScope`) are cumulative from `global-settings.json` and the entire tree branch; however, once a scope is defined `notScopes` may not be defined at any child node.

Both `scope` and `notScope` are specific to an [EPAC Environment using the pacSelector name](start-implementing.md#epac-concepts-and-environments), e.g., `epac-dev` and `tenant`.
Both `scope` and `notScopes` are specific to an [EPAC Environment using the pacSelector name](start-implementing.md#epac-concepts-and-environments), e.g., `epac-dev` and `tenant`.

```json
"scope": {
Expand All @@ -184,7 +184,7 @@ Both `scope` and `notScope` are specific to an [EPAC Environment using the pacSe
}
```

`notScope` works the same. In addition `"*"` means all EPAC Environments.
`notScopes` works the same. In addition `"*"` means all EPAC Environments.

```json
"notScopes": {
Expand Down
2 changes: 1 addition & 1 deletion Scripts/Helpers/Export-AssignmentNode.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function Export-AssignmentNode {
}
}
if ($notScopesValue.Count -gt 0) {
$null = $AssignmentNode.Add("notScope", $notScopesValue)
$null = $AssignmentNode.Add("notScopes", $notScopesValue)
}
break
}
Expand Down