From 47ed682128ec5f1eb174f0fdb306013c2417b290 Mon Sep 17 00:00:00 2001 From: junboli Date: Sat, 21 Apr 2018 17:40:36 +0800 Subject: [PATCH] Clearup duplicate req_version variable In the method '_items', req_version is doubled, so remove one. Change-Id: I5a7446a3843eeb192092a2aff74b254527f4eae5 --- cinder/api/v3/snapshots.py | 1 - 1 file changed, 1 deletion(-) diff --git a/cinder/api/v3/snapshots.py b/cinder/api/v3/snapshots.py index 2595cf02540..0c0d7afd25e 100644 --- a/cinder/api/v3/snapshots.py +++ b/cinder/api/v3/snapshots.py @@ -72,7 +72,6 @@ class SnapshotsController(snapshots_v2.SnapshotsController): def _items(self, req, is_detail=True): """Returns a list of snapshots, transformed through view builder.""" context = req.environ['cinder.context'] - req_version = req.api_version_request # Pop out non search_opts and create local variables search_opts = req.GET.copy() sort_keys, sort_dirs = common.get_sort_params(search_opts)