Comment 19 for bug 1836568

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo.policy (master)

Reviewed: https://review.opendev.org/682117
Committed: https://git.openstack.org/cgit/openstack/oslo.policy/commit/?id=5d3aeb53a9f3686353e0740c1891bd0e66e90650
Submitter: Zuul
Branch: master

commit 5d3aeb53a9f3686353e0740c1891bd0e66e90650
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: I194af14ebd341366dbb1dd033654739a7f3d085c
    Partial-Bug: 1836568