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: I194af14ebd341366dbb1dd033654739a7f3d085c
Partial-Bug: 1836568
(cherry picked from commit 5d3aeb53a9f3686353e0740c1891bd0e66e90650)
Reviewed: https:/ /review. opendev. org/694842 /git.openstack. org/cgit/ openstack/ oslo.policy/ commit/ ?id=4cf4d0b2d75 19f328f0d6ab76f 268d090407e0d3
Committed: https:/
Submitter: Zuul
Branch: stable/train
commit 4cf4d0b2d7519f3 28f0d6ab76f268d 090407e0d3
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 353e0740c1891bd 0e66e90650)
Partial-Bug: 1836568
(cherry picked from commit 5d3aeb53a9f3686