From cf3e58656a9f2ae3d51a83a9ac6a329b2947b3d1 Mon Sep 17 00:00:00 2001 From: junboli Date: Sun, 13 Aug 2017 06:52:21 +0800 Subject: [PATCH] TrivialFix: Add code block and format JSON data Add json code block and pretty format the JSON data in file v2/share_snapshots.py. Change-Id: I316663ff78195fbee88c2a72795762750edc233e --- manila/api/v2/share_snapshots.py | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/manila/api/v2/share_snapshots.py b/manila/api/v2/share_snapshots.py index 2d578241a4..ed18b3eb86 100644 --- a/manila/api/v2/share_snapshots.py +++ b/manila/api/v2/share_snapshots.py @@ -84,14 +84,17 @@ class ShareSnapshotsController(share_snapshots.ShareSnapshotMixin, """Instruct Manila to manage an existing snapshot. Required HTTP Body: - { - "snapshot": - { - "share_id": , - "provider_location": - } - } + + .. code-block:: json + + { + "snapshot": + { + "share_id": , + "provider_location": + } + } Optional elements in 'snapshot' are: name A name for the new snapshot.