Remove unused clean session context wrapper

And all uses of clean_session flag.

Change-Id: Ia34ef573bfa3736552519e8423882bea9e4ee8b1
This commit is contained in:
Sumit Naiksatam
2017-03-22 21:25:52 -07:00
parent a39fefd479
commit 9e6f52082b
7 changed files with 293 additions and 473 deletions

View File

@@ -10,8 +10,6 @@
# License for the specific language governing permissions and limitations
# under the License.
import contextlib
from neutron import context as n_ctx
from oslo_config import cfg
from oslo_log import log as logging
@@ -25,17 +23,6 @@ LOG = logging.getLogger(__name__)
cfg.CONF.import_group('keystone_authtoken', 'keystonemiddleware.auth_token')
@contextlib.contextmanager
def clean_session(session):
# TODO(tbachman): the expunge_all() calls before and after
# the yield have been removed in order to test that they are
# no longer needed. The yield was kept in place for now, which
# makes the clean_session a No-Op. Once testing has validated
# that these can be removed, then a subsequent patch is needed
# to remove this (now-unused) infrastructure.
yield
def get_resource_plural(resource):
if resource.endswith('y'):
resource_plural = resource.replace('y', 'ies')