Comment 3 for bug 1771442

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

Reviewed: https://review.openstack.org/571830
Committed: https://git.openstack.org/cgit/openstack/oslo.policy/commit/?id=0f31938dd720015444e03f0056c0cfc0e4b8e932
Submitter: Zuul
Branch: master

commit 0f31938dd720015444e03f0056c0cfc0e4b8e932
Author: Lance Bragstad <email address hidden>
Date: Fri Jun 1 21:25:19 2018 +0000

    Remove erroneous newline in sample generation

    The sample generation code for policies has a couple different cases
    that make sure deprecated rules have descriptions and reasoning
    formatted in the comment section. One of the cases that handles
    policies deprecated for removal was injecting an extra newline in the
    comment text that threw off the formatting of the sample, leaving
    the subsequent policy uncommented, and visually unpleasing.

    This commit removes the extra newline in the formatting logic for
    deprecated policies and adds a test case for the behavior.

    Change-Id: I76338d2fbaccf3b43e0da04732fd9df3c05dfbda
    Closes-Bug: 1771442