summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2023-05-10 13:35:08 +0000
committerGerrit Code Review <review@openstack.org>2023-05-10 13:35:08 +0000
commit691596658b7dc5718650c84ea09c9350b243b8de (patch)
treebb587739546f6a243d88618b05e455ffa8066fea
parent3be3878be33f46f55deaa1c29305aefab5001c80 (diff)
parentc770785dcf6cb9d79ae26986ce5156e4ddc0f534 (diff)
downloadhorizon-691596658b7dc5718650c84ea09c9350b243b8de.tar.gz
Merge "Fix qos and trunks tables"
-rw-r--r--openstack_dashboard/static/app/core/openstack-service-api/neutron.service.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/openstack_dashboard/static/app/core/openstack-service-api/neutron.service.js b/openstack_dashboard/static/app/core/openstack-service-api/neutron.service.js
index 1ebf2310d..7e5fee5ee 100644
--- a/openstack_dashboard/static/app/core/openstack-service-api/neutron.service.js
+++ b/openstack_dashboard/static/app/core/openstack-service-api/neutron.service.js
@@ -376,6 +376,7 @@
var promise = apiService.get('/api/neutron/qos_policies/' + id + '/')
.then(function onSuccess(response) {
convertDatesHumanReadable(response.data);
+ return response;
});
promise = suppressError ? promise : promise.catch(function onError() {
var msg = gettext('Unable to retrieve the policy with ID %(id)s');
@@ -398,6 +399,7 @@
response.data.items.forEach(function(policy) {
convertDatesHumanReadable(policy);
});
+ return response;
})
.catch(function onError() {
toastService.add('error', gettext('Unable to retrieve the qos policies.'));
@@ -812,6 +814,7 @@
var promise = apiService.get('/api/neutron/trunks/' + id + '/')
.then(function onSuccess(response) {
convertDatesHumanReadable(response.data);
+ return response;
});
promise = suppressError ? promise : promise.catch(function onError() {
var msg = gettext('Unable to retrieve the trunk with id: %(id)s');
@@ -834,6 +837,7 @@
response.data.items.forEach(function(trunk) {
convertDatesHumanReadable(trunk);
});
+ return response;
})
.catch(function onError() {
toastService.add('error', gettext('Unable to retrieve the trunks.'));