From 88351df1c2ee44360d7803304796d1935f4c2896 Mon Sep 17 00:00:00 2001 From: chenke Date: Thu, 24 Oct 2019 20:05:52 +0800 Subject: [PATCH] Fix details doc format error This error was caused because of rst format. pls see: https://github.com/openstack/python-watcherclient/blob/master/doc/source/cli/details.rst This patch solved this error. Change-Id: I756d2f6327349c36e4523513a2ac84ad91f7785f --- doc/source/cli/details.rst | 65 ++++++++++++++++++++------------------ 1 file changed, 35 insertions(+), 30 deletions(-) diff --git a/doc/source/cli/details.rst b/doc/source/cli/details.rst index 2128cb4..21f5977 100644 --- a/doc/source/cli/details.rst +++ b/doc/source/cli/details.rst @@ -620,38 +620,43 @@ Create new audit template. ``--scope `` Part of the cluster on which an audit will be done. Can be provided either in yaml or json file. - YAML example: - ---- host_aggregates: - - id: 1 - - id: 2 - - id: 3 + +YAML example: +:: + + --- + - host_aggregates: + - id: 1 + - id: 2 + - id: 3 - availability_zones: - - name: AZ1 - - name: AZ2 + - name: AZ1 + - name: AZ2 - exclude: - - instances: - - uuid: UUID1 - - uuid: UUID2 - - compute_nodes: - - name: compute1 - - JSON example: - [{'host_aggregates': [ - {'id': 1}, - {'id': 2}, - {'id': 3}]}, - {'availability_zones': [ - {'name': 'AZ1'}, - {'name': 'AZ2'}]}, - {'exclude': [ - {'instances': [ - {'uuid': 'UUID1'}, - {'uuid': 'UUID2'} - ]}, - {'compute_nodes': [ - {'name': 'compute1'} - ]} - ]}] + - instances: + - uuid: UUID1 + - uuid: UUID2 + - compute_nodes: + - name: compute1 + +JSON example: +:: + + [ + {'host_aggregates': [ + {'id': 1}, + {'id': 2}, + {'id': 3}]}, + {'availability_zones': [ + {'name': 'AZ1'}, + {'name': 'AZ2'}]}, + {'exclude': [ + {'instances': [ + {'uuid': 'UUID1'}, + {'uuid': 'UUID2'}]}, + {'compute_nodes': [ + {'name': 'compute1'}]}]} + ] .. _watcher_audittemplate_delete: