From 5d8f0ad47ebb80b4171c626c3b6a07ff63418695 Mon Sep 17 00:00:00 2001 From: Travis Tripp Date: Sat, 28 Feb 2015 00:25:28 -0700 Subject: [PATCH] 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 --- horizon/static/horizon/js/angular/services/hz.api.cinder.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/horizon/static/horizon/js/angular/services/hz.api.cinder.js b/horizon/static/horizon/js/angular/services/hz.api.cinder.js index ce007d674d..db232d45bb 100644 --- a/horizon/static/horizon/js/angular/services/hz.api.cinder.js +++ b/horizon/static/horizon/js/angular/services/hz.api.cinder.js @@ -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.'));