Explorar o código

Accounting for IPs attached to a NetInterface but no Instance

almahmoud %!s(int64=7) %!d(string=hai) anos
pai
achega
66fd4ad334
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cloudbridge/cloud/providers/aws/resources.py

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

@@ -1155,7 +1155,7 @@ class AWSFloatingIP(BaseFloatingIP):
 
     @property
     def in_use(self):
-        return True if self._ip.instance_id else False
+        return True if self._ip.association_id else False
 
     def delete(self):
         self._ip.release()