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:
parent
fec4ac6b1b
commit
5d8f0ad47e
@ -42,7 +42,7 @@ limitations under the License.
|
|||||||
*/
|
*/
|
||||||
this.getVolumes = function(params) {
|
this.getVolumes = function(params) {
|
||||||
var config = (params) ? {'params': params} : {};
|
var config = (params) ? {'params': params} : {};
|
||||||
return apiService.get('/api/cinder/volumes/' + config)
|
return apiService.get('/api/cinder/volumes/', config)
|
||||||
.error(function () {
|
.error(function () {
|
||||||
horizon.alert('error', gettext('Unable to retrieve volumes.'));
|
horizon.alert('error', gettext('Unable to retrieve volumes.'));
|
||||||
});
|
});
|
||||||
@ -68,7 +68,7 @@ limitations under the License.
|
|||||||
*/
|
*/
|
||||||
this.getVolumeSnapshots = function(params) {
|
this.getVolumeSnapshots = function(params) {
|
||||||
var config = (params) ? {'params': params} : {};
|
var config = (params) ? {'params': params} : {};
|
||||||
return apiService.get('/api/cinder/volsnaps/' + config)
|
return apiService.get('/api/cinder/volumesnapshots/', config)
|
||||||
.error(function () {
|
.error(function () {
|
||||||
horizon.alert('error',
|
horizon.alert('error',
|
||||||
gettext('Unable to retrieve volume snapshots.'));
|
gettext('Unable to retrieve volume snapshots.'));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user