From 51b7b110a104806f10c32ddb7c4bf1859b66f1ab Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Thu, 5 Dec 2019 14:33:02 -0800 Subject: [PATCH] Set swift_source more in versioned_writes Change-Id: Id0b10cb5f1f3e2c39c8d134f55774a36dc1e75df --- swift/common/middleware/versioned_writes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/swift/common/middleware/versioned_writes.py b/swift/common/middleware/versioned_writes.py index 1db6a7dee8..5c9bce20b1 100644 --- a/swift/common/middleware/versioned_writes.py +++ b/swift/common/middleware/versioned_writes.py @@ -429,7 +429,7 @@ class VersionedWritesContext(WSGIContext): # making any backend requests if 'swift.authorize' in req.environ: container_info = get_container_info( - req.environ, self.app) + req.environ, self.app, swift_source='VW') req.acl = container_info.get('write_acl') aresp = req.environ['swift.authorize'](req) if aresp: @@ -570,7 +570,7 @@ class VersionedWritesContext(WSGIContext): # making any backend requests if 'swift.authorize' in req.environ: container_info = get_container_info( - req.environ, self.app) + req.environ, self.app, swift_source='VW') req.acl = container_info.get('write_acl') aresp = req.environ['swift.authorize'](req) if aresp: @@ -773,7 +773,7 @@ class VersionedWritesMiddleware(object): resp = None is_enabled = config_true_value(allow_versioned_writes) container_info = get_container_info( - req.environ, self.app) + req.environ, self.app, swift_source='VW') # To maintain backwards compatibility, container version # location could be stored as sysmeta or not, need to check both.