|
1 | | -# Copyright 2012-2013 OpenStack, LLC. |
| 1 | +# Copyright 2012-2013 OpenStack Foundation |
2 | 2 | # |
3 | 3 | # Licensed under the Apache License, Version 2.0 (the "License"); you may |
4 | 4 | # not use this file except in compliance with the License. You may obtain |
|
16 | 16 | """Endpoint action implementations""" |
17 | 17 |
|
18 | 18 | import logging |
| 19 | +import six |
19 | 20 |
|
20 | 21 | from cliff import command |
21 | 22 | from cliff import lister |
@@ -71,7 +72,7 @@ def take_action(self, parsed_args): |
71 | 72 | info.update(endpoint._info) |
72 | 73 | info['service_name'] = service.name |
73 | 74 | info['service_type'] = service.type |
74 | | - return zip(*sorted(info.iteritems())) |
| 75 | + return zip(*sorted(six.iteritems(info))) |
75 | 76 |
|
76 | 77 |
|
77 | 78 | class DeleteEndpoint(command.Command): |
@@ -183,7 +184,7 @@ def take_action(self, parsed_args): |
183 | 184 |
|
184 | 185 | url = identity_client.service_catalog.url_for(**kwargs) |
185 | 186 | info = {'%s.%s' % (parsed_args.service, parsed_args.type): url} |
186 | | - return zip(*sorted(info.iteritems())) |
| 187 | + return zip(*sorted(six.iteritems(info))) |
187 | 188 | else: |
188 | 189 | # The Identity 2.0 API doesn't support retrieving a single |
189 | 190 | # endpoint so we have to do this ourselves |
@@ -211,4 +212,4 @@ def take_action(self, parsed_args): |
211 | 212 | ep.service_id) |
212 | 213 | info['service_name'] = service.name |
213 | 214 | info['service_type'] = service.type |
214 | | - return zip(*sorted(info.iteritems())) |
| 215 | + return zip(*sorted(six.iteritems(info))) |
0 commit comments