Browse Source

Fixed issue with floating ip refresh in openstack

Nuwan Goonasekera 8 năm trước cách đây
mục cha
commit
70cb31311d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      cloudbridge/cloud/providers/openstack/resources.py

+ 1 - 1
cloudbridge/cloud/providers/openstack/resources.py

@@ -956,7 +956,7 @@ class OpenStackFloatingIP(BaseFloatingIP):
     def refresh(self):
         net = self._provider.networking.networks.get(
             self._ip.floating_network_id)
-        gw = net.gateways.get_or_create_inet_gateway(net)
+        gw = net.gateways.get_or_create_inet_gateway()
         fip = gw.floating_ips.get(self.id)
         # pylint:disable=protected-access
         self._ip = fip._ip