Python3: use six.iteritems() rather than dict.iteritems()

This is compatible with both Python 2 and 3.

Change-Id: If8c3a4a6fe028a3a1dc6899f0f4e65c89403d267
This commit is contained in:
Cyril Roelandt
2014-02-12 00:59:41 +01:00
parent 448d303790
commit 46aa0f882a

View File

@@ -13,6 +13,7 @@
# License for the specific language governing permissions and limitations
# under the License.
import copy
import six
from heatclient.openstack.common.apiclient import base
from heatclient.openstack.common.py3kcompat import urlutils
@@ -98,7 +99,7 @@ class StackManager(base.BaseManager):
filters = kwargs.pop('filters')
params.update(filters)
for key, value in kwargs.iteritems():
for key, value in six.iteritems(kwargs):
if value:
params[key] = value