ソースを参照

Accounting for IPs attached to a NetInterface but no Instance

almahmoud 7 年 前
コミット
66fd4ad334
1 ファイル変更1 行追加1 行削除
  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()