diff options
author | Akihiro Motoki <amotoki@gmail.com> | 2020-09-04 07:43:40 +0900 |
---|---|---|
committer | Akihiro Motoki <amotoki@gmail.com> | 2020-09-04 08:08:31 +0900 |
commit | d7b2995d587ef568d57e66ff62d764058c1254f0 (patch) | |
tree | e8181001c4d8cc5cd1e4815012624e1ea7cc0f24 /requirements.txt | |
parent | c6ed9f33a55727e2411eae432f379b56ba9b9a6c (diff) | |
download | oslo-policy-d7b2995d587ef568d57e66ff62d764058c1254f0.tar.gz |
sample-generator: Improve YAML output
This commit makes the following minor improvements
in YAML output of oslopolicy-sample-generator.
* Add a blank line between policies.
Previously when a deprecated rule exists there was no blank line
between the deprecated rule and the next rule.
It was not easy to identify the beginning of the next rule.
* Drop unnecessary blank line comment.
If a policy is defined by RuleDefault instead of DocumentedRuleDefault
there is no description and unnecessary blank line comment was added
in an output YAML file.
* Honor newlines in deprecated_text.
Previously newlines in deprecated_text were dropped by
_format_help_text(). Main deprecation message and reason are
processed separately and newlines are not dropped now.
Change-Id: I75889a1b05344a47135419d0553525f54c1a51b8
Diffstat (limited to 'requirements.txt')
0 files changed, 0 insertions, 0 deletions