Suppress deprecation warnings in oslopolicy-list-redundant
When running the tool against a project with a lot of deprecated
policies, the deprecation warnings overwhelm the important output
from the tool. Since checking for deprecations isn't the purpose of
this tool, let's just suppress warnings and limit the output to the
list of redundant policy rules that the user cares about.
I will note that the suppress_deprecation_warnings member is marked
as test only, but that was targeted at consumers of oslo.policy
rather than oslo.policy itself. I could also argue that we're
"testing" for redundant policies here, but that feels like semantic
hair splitting. :-)
Reviewed: https:/ /review. opendev. org/682117 /git.openstack. org/cgit/ openstack/ oslo.policy/ commit/ ?id=5d3aeb53a9f 3686353e0740c18 91bd0e66e90650
Committed: https:/
Submitter: Zuul
Branch: master
commit 5d3aeb53a9f3686 353e0740c1891bd 0e66e90650
Author: Ben Nemec <email address hidden>
Date: Fri Sep 13 17:08:05 2019 +0000
Suppress deprecation warnings in oslopolicy- list-redundant
When running the tool against a project with a lot of deprecated
policies, the deprecation warnings overwhelm the important output
from the tool. Since checking for deprecations isn't the purpose of
this tool, let's just suppress warnings and limit the output to the
list of redundant policy rules that the user cares about.
I will note that the suppress_ deprecation_ warnings member is marked
as test only, but that was targeted at consumers of oslo.policy
rather than oslo.policy itself. I could also argue that we're
"testing" for redundant policies here, but that feels like semantic
hair splitting. :-)
Change-Id: I194af14ebd3413 66dbb1dd0336547 39a7f3d085c
Partial-Bug: 1836568