瀏覽代碼

Fix OpenStack instance security_group_ids implementation to return IDs vs. names

Enis Afgan 10 年之前
父節點
當前提交
816b04da2f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cloudbridge/cloud/providers/openstack/resources.py

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

@@ -327,7 +327,7 @@ class OpenStackInstance(BaseInstance):
         """
         """
         Get the security groups IDs associated with this instance.
         Get the security groups IDs associated with this instance.
         """
         """
-        return [group['name'] for group in self._os_instance.security_groups]
+        return [group.id for group in self.security_groups]
 
 
     @property
     @property
     def key_pair_name(self):
     def key_pair_name(self):