]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Switch get_all_snapshots to use objects
authorThang Pham <thang.g.pham@gmail.com>
Wed, 4 Mar 2015 03:10:52 +0000 (22:10 -0500)
committerrick.chen <rick.chen@prophetstor.com>
Mon, 1 Jun 2015 01:26:05 +0000 (09:26 +0800)
commitb8a58fb01f25428d367d35d6025d9046abbfe8fc
treead216264f56d73e846616a896916752f634f5e41
parent8ae4bdc8f3d04e47a839f8187dbd955ab2528189
Switch get_all_snapshots to use objects

The following patch switches direct db calls in
volume/api.py get_all_snapshots to use SnapshotList
instead.

Partial-Implements: blueprint cinder-objects
Change-Id: Ifdccc81a087f9797fcfbf098d3ecea3875ad7bd9
cinder/api/v1/snapshots.py
cinder/api/v2/snapshots.py
cinder/tests/unit/api/v1/test_snapshots.py
cinder/tests/unit/api/v2/test_snapshots.py
cinder/volume/api.py
tools/lintstack.py