Bladeren bron

Oops forgot to apply stash

almahmoud 7 jaren geleden
bovenliggende
commit
ff886972f6

+ 1 - 1
cloudbridge/cloud/providers/aws/services.py

@@ -1270,7 +1270,7 @@ class AWSFloatingIPService(BaseFloatingIPService):
     @dispatch(event="provider.networking.floating_ips.list",
               priority=BaseFloatingIPService.STANDARD_EVENT_PRIORITY)
     def list(self, gateway, limit=None, marker=None):
-        self.svc.list(limit, marker)
+        return self.svc.list(limit, marker)
 
     @dispatch(event="provider.networking.floating_ips.create",
               priority=BaseFloatingIPService.STANDARD_EVENT_PRIORITY)

+ 3 - 1
cloudbridge/cloud/providers/azure/resources.py

@@ -852,7 +852,9 @@ class AzureFloatingIP(BaseFloatingIP):
         # Gateway is not needed as it doesn't exist in Azure, so just
         # getting the Floating IP again from the client
         # pylint:disable=protected-access
-        return self._provider.networking._floating_ips.get(None, self.id)
+        fip = self._provider.networking._floating_ips.get(None, self.id)
+        # pylint:disable=protected-access
+        self._ip = fip._ip
 
 
 class AzureRegion(BaseRegion):

+ 2 - 1
cloudbridge/cloud/providers/gce/resources.py

@@ -1363,7 +1363,8 @@ class GCEFloatingIP(BaseFloatingIP):
         return True if self._target_instance else False
 
     def refresh(self):
-        fip = self._provider.netowrking._floating_ips.get(None, self.id)
+        # pylint:disable=protected-access
+        fip = self._provider.networking._floating_ips.get(None, self.id)
         # pylint:disable=protected-access
         self._ip = fip._ip
         self._process_ip_users()