]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Adapt SnapshotController to view builder
authorGorka Eguileor <geguileo@redhat.com>
Fri, 31 Jul 2015 18:01:20 +0000 (20:01 +0200)
committerGorka Eguileor <geguileo@redhat.com>
Mon, 17 Aug 2015 11:29:44 +0000 (13:29 +0200)
commit433cf95e060fedfbde470a492d8924e22673939f
tree49ff64fcdb6e3658864797fe31c5ffcabfd9a6a0
parent4c1acb6b821e0c3464ca04987698f5b7c803b883
Adapt SnapshotController to view builder

Snapshots were not using the view builder to translate responses, unlike
other resources like volumes and backups.

This patch moves snapshots to use the view builder like the rest.

Change-Id: Iec6873aedcf126f00c81fd016acfc8db9a5e512c
cinder/api/v2/snapshots.py
cinder/api/views/snapshots.py [new file with mode: 0644]
cinder/tests/unit/api/v2/test_snapshots.py