Remove resource_key for dns floating IP

The resource_key should not be set otherwise a proxy
call to update_floating_ip() will fail in Designate API
with a 400 bad request.

Closes-Bug: 2046891
Change-Id: Ic056bc6f800d80a3c4a4821660912b1c88e73efd
This commit is contained in:
Tobias Urdin 2023-12-18 13:14:14 +01:00
parent 8378110c1a
commit de87212558
2 changed files with 1 additions and 2 deletions

View File

@ -17,7 +17,6 @@ from openstack import resource
class FloatingIP(_base.Resource):
"""DNS Floating IP Resource"""
resource_key = ''
resources_key = 'floatingips'
base_path = '/reverse/floatingips'

View File

@ -30,7 +30,7 @@ EXAMPLE = {
class TestFloatingIP(base.TestCase):
def test_basic(self):
sot = fip.FloatingIP()
self.assertEqual('', sot.resource_key)
self.assertEqual(None, sot.resource_key)
self.assertEqual('floatingips', sot.resources_key)
self.assertEqual('/reverse/floatingips', sot.base_path)
self.assertTrue(sot.allow_list)