Remove openstacksdk workaround for floating IP
This removes the openstacksdk workaround for the resource_key bug for dns floating IP [1]. [1] https://review.opendev.org/c/openstack/openstacksdk/+/903879 Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/903879 Change-Id: If269cbc261849e2a3daf7a9ab76476b4d91d0e3c
This commit is contained in:
parent
d64f3c03fd
commit
8bc4637947
|
@ -243,19 +243,8 @@ def update_dns_floatingip(request, **kwargs):
|
|||
if data.get('ttl', None):
|
||||
build_kwargs['ttl'] = data['ttl']
|
||||
|
||||
# TODO(tobias-urdin): Bug in openstacksdk
|
||||
# https://review.opendev.org/c/openstack/openstacksdk/+/903879
|
||||
obj = conn.dns._get_resource(_fip.FloatingIP, fip_id,
|
||||
**build_kwargs)
|
||||
obj.resource_key = None
|
||||
has_body = True
|
||||
if build_kwargs['ptrdname'] is None:
|
||||
has_body = False
|
||||
fip = obj.commit(conn.dns, has_body=has_body)
|
||||
# Update to this when bug is fixed.
|
||||
#fip = conn.dns.update_floating_ip(
|
||||
# fip_id, **build_kwargs)
|
||||
|
||||
fip = conn.dns.update_floating_ip(
|
||||
fip_id, **build_kwargs)
|
||||
return fip.to_dict()
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
upgrade:
|
||||
- |
|
||||
TODO: update this!
|
||||
The designate dashboard now requires a minimum openstacksdk version of x.x.x
|
Loading…
Reference in New Issue