summaryrefslogtreecommitdiffstats
path: root/nova/compute
diff options
context:
space:
mode:
authorTodd Willey <todd@ansolabs.com>2011-01-25 12:52:00 -0800
committerTodd Willey <todd@ansolabs.com>2011-01-25 12:52:00 -0800
commit4e3524c57f6fa0f917bdb30ec15c8d4633a307e5 (patch)
tree749656d687c9c9c5c11646e1971887aeecdf1507 /nova/compute
parenta964fc3a8efad33b0dbb94e8a128c512a248f7f1 (diff)
Updates for provider_fw_rules in admin api.
Diffstat (limited to 'nova/compute')
-rw-r--r--nova/compute/api.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/compute/api.py b/nova/compute/api.py
index cb1a57a44..a8eed7aa5 100644
--- a/nova/compute/api.py
+++ b/nova/compute/api.py
@@ -277,7 +277,8 @@ class API(base.Base):
def trigger_provider_fw_rules_refresh(self, context):
"""Called when a rule is added to or removed from a security_group"""
- hosts = [x['host'] for x in db.service_get_all_compute_sorted(context)]
+ hosts = [x['host'] for (x,idx)
+ in db.service_get_all_compute_sorted(context)]
for host in hosts:
rpc.cast(context,
self.db.queue_get_for(context, FLAGS.compute_topic, host),