Browse Source

Merge "Fix tenant floating_ip_allocation call in neutron rest api." into stable/rocky

tags/14.1.0
Zuul 2 months ago
parent
commit
bbaa1d0903
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      openstack_dashboard/api/rest/network.py
  2. +1
    -1
      openstack_dashboard/test/unit/api/rest/test_network.py

+ 1
- 1
openstack_dashboard/api/rest/network.py View File

@@ -67,7 +67,7 @@ class FloatingIP(generic.View):
if 'dns_name' in request.DATA:
params['dns_name'] = request.DATA['dns_name']
result = api.neutron.tenant_floating_ip_allocate(request, pool,
None, params)
None, **params)
return result.to_dict()

@rest_utils.ajax(data_required=True)

+ 1
- 1
openstack_dashboard/test/unit/api/rest/test_network.py View File

@@ -77,7 +77,7 @@ class RestNetworkApiFloatingIpTests(test.TestCase):
self.mock_tenant_floating_ip_allocate.assert_called_once_with(request,
'pool',
None,
{})
**{})

@test.create_mocks({api.neutron: ['floating_ip_associate']})
def test_associate_floating_ip(self):

Loading…
Cancel
Save