From ff52bb1b1c04cdad59f784f8222a4853e7a8304e Mon Sep 17 00:00:00 2001 From: Kota Tsuyuzaki Date: Wed, 31 Aug 2016 23:01:05 -0700 Subject: [PATCH] Avoid warnings for versioned_writes docs This includes a couple of fixes as follows: - Add one more "-" for mode example titles to adjust the title length (it seems needed to use verbatim expression) - Remove unnecessary back slash Change-Id: If41bba040ea31f2354642b2ec32bc92ece4f0971 --- swift/common/middleware/versioned_writes.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/swift/common/middleware/versioned_writes.py b/swift/common/middleware/versioned_writes.py index c8c48b761d..4442e011e4 100644 --- a/swift/common/middleware/versioned_writes.py +++ b/swift/common/middleware/versioned_writes.py @@ -105,9 +105,9 @@ the 'history' mode during a rolling upgrade may result in some requests being served by proxies running old code (which necessarily uses the 'stack' mode), leading to data loss. -------------------------------------------- +-------------------------------------------- Examples Using ``curl`` with ``stack`` Mode -------------------------------------------- +-------------------------------------------- First, create a container with the ``X-Versions-Location`` header or add the header to an existing container. Also make sure the container referenced by @@ -143,9 +143,9 @@ http:///versions?prefix=008myobject/ curl -i -XGET -H "X-Auth-Token: " \ http:///container/myobject ---------------------------------------------- +---------------------------------------------- Examples Using ``curl`` with ``history`` Mode ---------------------------------------------- +---------------------------------------------- As above, create a container with the ``X-Versions-Location`` header and ensure that the container referenced by the ``X-Versions-Location`` exists. In this @@ -194,7 +194,7 @@ To permanently delete a previous version, ``DELETE`` it from the archive container:: curl -i -XDELETE -H "X-Auth-Token: " \ -http:///versions/008myobject/ \ +http:///versions/008myobject/ --------------------------------------------------- How to Disable Object Versioning in a Swift Cluster