diff options
author | Vladislav Kuzmin <vladiskuz@gmail.com> | 2018-02-28 01:22:15 +0400 |
---|---|---|
committer | Vladislav Kuzmin <vladiskuz@gmail.com> | 2018-03-02 11:25:54 +0400 |
commit | 38ebec57e903d2119a496b780e3208367f2b1e63 (patch) | |
tree | 14bfe9a65f0c7c22a50f3a6cd522f5c37a409139 /openstack_dashboard/api/nova.py | |
parent | b82b7d416767177ed6313f117df559a290595dff (diff) | |
download | horizon-38ebec57e903d2119a496b780e3208367f2b1e63.tar.gz |
Convert admin.aggregates tests into mock
Change-Id: Ia6c39234ea80128c36b1d2e3c891812f286acf56
Diffstat (limited to 'openstack_dashboard/api/nova.py')
-rw-r--r-- | openstack_dashboard/api/nova.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openstack_dashboard/api/nova.py b/openstack_dashboard/api/nova.py index 9539b891b..4c4e53daf 100644 --- a/openstack_dashboard/api/nova.py +++ b/openstack_dashboard/api/nova.py @@ -976,7 +976,7 @@ def aggregate_get(request, aggregate_id): @profiler.trace def aggregate_update(request, aggregate_id, values): - return novaclient(request).aggregates.update(aggregate_id, values) + novaclient(request).aggregates.update(aggregate_id, values) @profiler.trace @@ -986,12 +986,12 @@ def aggregate_set_metadata(request, aggregate_id, metadata): @profiler.trace def add_host_to_aggregate(request, aggregate_id, host): - return novaclient(request).aggregates.add_host(aggregate_id, host) + novaclient(request).aggregates.add_host(aggregate_id, host) @profiler.trace def remove_host_from_aggregate(request, aggregate_id, host): - return novaclient(request).aggregates.remove_host(aggregate_id, host) + novaclient(request).aggregates.remove_host(aggregate_id, host) @profiler.trace |