From 5d3aeb53a9f3686353e0740c1891bd0e66e90650 Mon Sep 17 00:00:00 2001 From: Ben Nemec Date: Fri, 13 Sep 2019 17:08:05 +0000 Subject: 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 --- .../notes/list-redundant-deprecation-warnings-f84a06133efdaedd.yaml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 releasenotes/notes/list-redundant-deprecation-warnings-f84a06133efdaedd.yaml (limited to 'releasenotes') diff --git a/releasenotes/notes/list-redundant-deprecation-warnings-f84a06133efdaedd.yaml b/releasenotes/notes/list-redundant-deprecation-warnings-f84a06133efdaedd.yaml new file mode 100644 index 0000000..5f321b2 --- /dev/null +++ b/releasenotes/notes/list-redundant-deprecation-warnings-f84a06133efdaedd.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Deprecated policy warnings are now suppressed in the + ``oslopolicy-list-redundant`` tool so that they don't overwhelm the + relevant output. -- cgit v1.2.1