diff options
author | Slawek Kaplonski <skaplons@redhat.com> | 2022-03-17 20:35:45 +0100 |
---|---|---|
committer | Slawek Kaplonski <skaplons@redhat.com> | 2022-03-17 20:38:32 +0100 |
commit | 9bc1783400f9960b7132bf631c690a98fbfc8066 (patch) | |
tree | e46da5cdf8959d0e7cdc86e322ae9d96142a8fb7 /releasenotes | |
parent | 9eef147fc334b254974b634b4411cbb8875a8c5a (diff) | |
download | oslo-policy-9bc1783400f9960b7132bf631c690a98fbfc8066.tar.gz |
Don't raise InvalidScope exception when do_raise=False
In the Enforcer.enforce() method there is boolean parameter do_raise.
When it is set to False, enforce() method should return True/False as an
enforcement result and not raise exception. It works like that with
PolicyNotAuthorized exception but since some time this method can also
raise InvalidScope exception and in such case behaviour was different.
This patch changes that behaviour so InvalidScope exception will also
not be raised when do_raise=False.
Closes-bug: #1965315
Change-Id: I37fd682ffa9d6f4c69698e1be42adac28bbfe72a
Diffstat (limited to 'releasenotes')
0 files changed, 0 insertions, 0 deletions