Skip to content

Commit

Permalink
Updated to export and docs (#770)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Watherston <[email protected]>
  • Loading branch information
anwather and Anthony Watherston authored Oct 10, 2024
1 parent f80a43a commit de9096a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit de9096a

Please sign in to comment.