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, base.RULE_ADMIN_API,
"""Create, list, update, and delete guest agent builds """Create, list, update, and delete guest agent builds
This is XenAPI driver specific. It is used to force the upgrade of the This is XenAPI driver specific.
XenAPI guest agent on instance boot. 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', 'is_admin:False',
"""Hide server's 'addresses' key in the server response. """Hide server's 'addresses' key in the server response.
This set the 'addresses' key in the server response to an empty dictionary This set the 'addresses' key in the server response to an empty
when the server is in a specific set of states as defined in dictionary when the server is in a specific set of states as
CONF.api.hide_server_address_states. defined in CONF.api.hide_server_address_states.
By default 'addresses' is hidden only when the server is in 'BUILDING' By default 'addresses' is hidden only when the server is in
state.""", 'BUILDING' state.""",
[ [
{ {
'method': 'GET', 'method': 'GET',

View File

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

View File

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