REST Angular for Cinder Fix

The REST API for angular had two small issues that were fixed
in a larger patch.  Pulling that fix out to here to reduce
the side of the larger patch.

See https://review.openstack.org/#/c/158929/11/

Partially Implements: blueprint launch-instance-redesign

Change-Id: I267fa78c37593d59bb12e12298da350ee6253908
This commit is contained in:
Travis Tripp 2015-02-28 00:25:28 -07:00
parent fec4ac6b1b
commit 5d8f0ad47e

View File

@ -42,7 +42,7 @@ limitations under the License.
*/
this.getVolumes = function(params) {
var config = (params) ? {'params': params} : {};
return apiService.get('/api/cinder/volumes/' + config)
return apiService.get('/api/cinder/volumes/', config)
.error(function () {
horizon.alert('error', gettext('Unable to retrieve volumes.'));
});
@ -68,7 +68,7 @@ limitations under the License.
*/
this.getVolumeSnapshots = function(params) {
var config = (params) ? {'params': params} : {};
return apiService.get('/api/cinder/volsnaps/' + config)
return apiService.get('/api/cinder/volumesnapshots/', config)
.error(function () {
horizon.alert('error',
gettext('Unable to retrieve volume snapshots.'));