Fix indentation in policy doc

Few generated policy doc are not in horizontal
indentation.

Wrapping the policy doc string to have good indentation
in generated sample policy file.

Change-Id: Ia5576ded7bb4a449484a9d687fc2cd4fa724119a
Implements: blueprint policy-docs
This commit is contained in:
ghanshyam 2017-07-18 10:06:23 +03:00
parent 247f9b8120
commit b413b41ad5
4 changed files with 16 additions and 14 deletions

View File

@ -27,8 +27,8 @@ agents_policies = [
base.RULE_ADMIN_API,
"""Create, list, update, and delete guest agent builds
This is XenAPI driver specific. It is used to force the upgrade of the
XenAPI guest agent on instance boot.
This is XenAPI driver specific.
It is used to force the upgrade of the XenAPI guest agent on instance boot.
""",
[
{

View File

@ -24,11 +24,11 @@ hide_server_addresses_policies = [
'is_admin:False',
"""Hide server's 'addresses' key in the server response.
This set the 'addresses' key in the server response to an empty dictionary
when the server is in a specific set of states as defined in
CONF.api.hide_server_address_states.
By default 'addresses' is hidden only when the server is in 'BUILDING'
state.""",
This set the 'addresses' key in the server response to an empty
dictionary when the server is in a specific set of states as
defined in CONF.api.hide_server_address_states.
By default 'addresses' is hidden only when the server is in
'BUILDING' state.""",
[
{
'method': 'GET',

View File

@ -29,11 +29,12 @@ hypervisors_policies = [
This rule will be checked for the following APIs:
List all hypervisors, list all hypervisors with details, show summary
statistics for all hypervisors over all compute nodes, show details for a
hypervisor, show the uptime of a hypervisor, search hypervisor by
hypervisor_hostname pattern and list all servers on hypervisors that can match
the provided hypervisor_hostname pattern.""",
List all hypervisors, list all hypervisors with details, show
summary statistics for all hypervisors over all compute nodes,
show details for a hypervisor, show the uptime of a hypervisor,
search hypervisor by hypervisor_hostname pattern and list all
servers on hypervisors that can match the provided
hypervisor_hostname pattern.""",
[
{
'path': '/os-hypervisors',

View File

@ -27,8 +27,9 @@ volumes_policies = [
base.RULE_ADMIN_OR_OWNER,
"""Manage volumes for use with the Compute API.
Lists, shows details, creates, and deletes volumes and snapshots. These APIs
are proxy calls to the Volume service. These are all deprecated.
Lists, shows details, creates, and deletes volumes and
snapshots. These APIs are proxy calls to the Volume service.
These are all deprecated.
""",
[
{