From 4f6d71411ca23a4f92654f000e24fe008f0a00da Mon Sep 17 00:00:00 2001 From: Vishvananda Ishaya Date: Wed, 4 Aug 2010 12:54:21 -0700 Subject: use iteritems --- nova/endpoint/cloud.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/endpoint/cloud.py b/nova/endpoint/cloud.py index 338a52214..789663899 100644 --- a/nova/endpoint/cloud.py +++ b/nova/endpoint/cloud.py @@ -584,7 +584,7 @@ class CloudController(object): inst['project_id'] = context.project.id inst['ami_launch_index'] = num inst['security_group'] = security_group - for (key, value) in allocate_data: + for (key, value) in allocate_data.iteritems(): inst[key] = value inst.save() -- cgit