summaryrefslogtreecommitdiff
path: root/openstackclient/identity/v3
diff options
context:
space:
mode:
Diffstat (limited to 'openstackclient/identity/v3')
-rw-r--r--openstackclient/identity/v3/credential.py7
-rw-r--r--openstackclient/identity/v3/domain.py7
-rw-r--r--openstackclient/identity/v3/endpoint.py7
-rw-r--r--openstackclient/identity/v3/group.py7
-rw-r--r--openstackclient/identity/v3/oauth.py17
-rw-r--r--openstackclient/identity/v3/policy.py7
-rw-r--r--openstackclient/identity/v3/project.py7
-rw-r--r--openstackclient/identity/v3/role.py7
-rw-r--r--openstackclient/identity/v3/service.py7
-rw-r--r--openstackclient/identity/v3/user.py7
10 files changed, 45 insertions, 35 deletions
diff --git a/openstackclient/identity/v3/credential.py b/openstackclient/identity/v3/credential.py
index a2fb43a2..b82825f0 100644
--- a/openstackclient/identity/v3/credential.py
+++ b/openstackclient/identity/v3/credential.py
@@ -1,4 +1,4 @@
-# Copyright 2012-2013 OpenStack, LLC.
+# Copyright 2012-2013 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
@@ -16,6 +16,7 @@
"""Identity v3 Credential action implementations"""
import logging
+import six
import sys
from cliff import command
@@ -72,7 +73,7 @@ class CreateCredential(show.ShowOne):
parsed_args.data,
project=project)
- return zip(*sorted(credential._info.iteritems()))
+ return zip(*sorted(six.iteritems(credential._info)))
class DeleteCredential(command.Command):
@@ -191,4 +192,4 @@ class ShowCredential(show.ShowOne):
credential = utils.find_resource(identity_client.credentials,
parsed_args.credential)
- return zip(*sorted(credential._info.iteritems()))
+ return zip(*sorted(six.iteritems(credential._info)))
diff --git a/openstackclient/identity/v3/domain.py b/openstackclient/identity/v3/domain.py
index f6064a58..1e9a4a2a 100644
--- a/openstackclient/identity/v3/domain.py
+++ b/openstackclient/identity/v3/domain.py
@@ -1,4 +1,4 @@
-# Copyright 2012-2013 OpenStack, LLC.
+# Copyright 2012-2013 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
@@ -16,6 +16,7 @@
"""Identity v3 Domain action implementations"""
import logging
+import six
import sys
from cliff import command
@@ -65,7 +66,7 @@ class CreateDomain(show.ShowOne):
enabled=parsed_args.enabled,
)
- return zip(*sorted(domain._info.iteritems()))
+ return zip(*sorted(six.iteritems(domain._info)))
class DeleteDomain(command.Command):
@@ -185,4 +186,4 @@ class ShowDomain(show.ShowOne):
domain = utils.find_resource(identity_client.domains,
parsed_args.domain)
- return zip(*sorted(domain._info.iteritems()))
+ return zip(*sorted(six.iteritems(domain._info)))
diff --git a/openstackclient/identity/v3/endpoint.py b/openstackclient/identity/v3/endpoint.py
index c5f3ebad..43da07aa 100644
--- a/openstackclient/identity/v3/endpoint.py
+++ b/openstackclient/identity/v3/endpoint.py
@@ -1,4 +1,4 @@
-# Copyright 2012-2013 OpenStack, LLC.
+# Copyright 2012-2013 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
@@ -16,6 +16,7 @@
"""Identity v3 Endpoint action implementations"""
import logging
+import six
import sys
from cliff import command
@@ -83,7 +84,7 @@ class CreateEndpoint(show.ShowOne):
info.update(endpoint._info)
info['service_name'] = service.name
info['service_type'] = service.type
- return zip(*sorted(info.iteritems()))
+ return zip(*sorted(six.iteritems(info)))
class DeleteEndpoint(command.Command):
@@ -239,4 +240,4 @@ class ShowEndpoint(show.ShowOne):
info.update(endpoint._info)
info['service_name'] = service.name
info['service_type'] = service.type
- return zip(*sorted(info.iteritems()))
+ return zip(*sorted(six.iteritems(info)))
diff --git a/openstackclient/identity/v3/group.py b/openstackclient/identity/v3/group.py
index ca0493eb..b5d24ef5 100644
--- a/openstackclient/identity/v3/group.py
+++ b/openstackclient/identity/v3/group.py
@@ -1,4 +1,4 @@
-# Copyright 2012-2013 OpenStack, LLC.
+# Copyright 2012-2013 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
@@ -16,6 +16,7 @@
"""Group action implementations"""
import logging
+import six
import sys
from cliff import command
@@ -138,7 +139,7 @@ class CreateGroup(show.ShowOne):
info = {}
info.update(group._info)
- return zip(*sorted(info.iteritems()))
+ return zip(*sorted(six.iteritems(info)))
class DeleteGroup(command.Command):
@@ -375,4 +376,4 @@ class ShowGroup(show.ShowOne):
info = {}
info.update(group._info)
- return zip(*sorted(info.iteritems()))
+ return zip(*sorted(six.iteritems(info)))
diff --git a/openstackclient/identity/v3/oauth.py b/openstackclient/identity/v3/oauth.py
index bcbbdf7e..1672cd24 100644
--- a/openstackclient/identity/v3/oauth.py
+++ b/openstackclient/identity/v3/oauth.py
@@ -1,4 +1,4 @@
-# Copyright 2012-2013 OpenStack, LLC.
+# Copyright 2012-2013 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
@@ -16,6 +16,7 @@
"""Identity v3 OAuth action implementations"""
import logging
+import six
import sys
from cliff import command
@@ -65,7 +66,7 @@ class AuthenticateAccessToken(show.ShowOne):
keystone_token = oauth_client.authenticate(
parsed_args.consumer_key, parsed_args.consumer_secret,
parsed_args.access_key, parsed_args.access_secret)
- return zip(*sorted(keystone_token.iteritems()))
+ return zip(*sorted(six.iteritems(keystone_token)))
class AuthorizeRequestToken(show.ShowOne):
@@ -97,7 +98,7 @@ class AuthorizeRequestToken(show.ShowOne):
parsed_args.request_key, parsed_args.roles)
info = {}
info.update(verifier_pin._info)
- return zip(*sorted(info.iteritems()))
+ return zip(*sorted(six.iteritems(info)))
class CreateAccessToken(show.ShowOne):
@@ -146,7 +147,7 @@ class CreateAccessToken(show.ShowOne):
parsed_args.consumer_key, parsed_args.consumer_secret,
parsed_args.request_key, parsed_args.request_secret,
parsed_args.verifier)
- return zip(*sorted(access_token.iteritems()))
+ return zip(*sorted(six.iteritems(access_token)))
class CreateConsumer(show.ShowOne):
@@ -171,7 +172,7 @@ class CreateConsumer(show.ShowOne):
)
info = {}
info.update(consumer._info)
- return zip(*sorted(info.iteritems()))
+ return zip(*sorted(six.iteritems(info)))
class CreateRequestToken(show.ShowOne):
@@ -207,7 +208,7 @@ class CreateRequestToken(show.ShowOne):
parsed_args.consumer_key,
parsed_args.consumer_secret,
parsed_args.roles)
- return zip(*sorted(request_token.iteritems()))
+ return zip(*sorted(six.iteritems(request_token)))
class DeleteConsumer(command.Command):
@@ -366,7 +367,7 @@ class ShowAuthorizationPin(show.ShowOne):
parsed_args.request_id)
info = {}
info.update(data._info)
- return zip(*sorted(info.iteritems()))
+ return zip(*sorted(six.iteritems(info)))
class ShowConsumer(show.ShowOne):
@@ -391,4 +392,4 @@ class ShowConsumer(show.ShowOne):
info = {}
info.update(consumer._info)
- return zip(*sorted(info.iteritems()))
+ return zip(*sorted(six.iteritems(info)))
diff --git a/openstackclient/identity/v3/policy.py b/openstackclient/identity/v3/policy.py
index ac14cc46..cdbb1cf2 100644
--- a/openstackclient/identity/v3/policy.py
+++ b/openstackclient/identity/v3/policy.py
@@ -1,4 +1,4 @@
-# Copyright 2012-2013 OpenStack, LLC.
+# Copyright 2012-2013 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
@@ -16,6 +16,7 @@
"""Identity v3 Policy action implementations"""
import logging
+import six
import sys
from cliff import command
@@ -54,7 +55,7 @@ class CreatePolicy(show.ShowOne):
blob, type=parsed_args.type
)
- return zip(*sorted(policy._info.iteritems()))
+ return zip(*sorted(six.iteritems(policy._info)))
class DeletePolicy(command.Command):
@@ -172,7 +173,7 @@ class ShowPolicy(show.ShowOne):
policy = utils.find_resource(identity_client.policies,
parsed_args.policy)
- return zip(*sorted(policy._info.iteritems()))
+ return zip(*sorted(six.iteritems(policy._info)))
def _read_blob_file_contents(blob_file):
diff --git a/openstackclient/identity/v3/project.py b/openstackclient/identity/v3/project.py
index 9d1e360b..05722b54 100644
--- a/openstackclient/identity/v3/project.py
+++ b/openstackclient/identity/v3/project.py
@@ -1,4 +1,4 @@
-# Copyright 2012-2013 OpenStack, LLC.
+# Copyright 2012-2013 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
@@ -16,6 +16,7 @@
"""Project action implementations"""
import logging
+import six
import sys
from cliff import command
@@ -78,7 +79,7 @@ class CreateProject(show.ShowOne):
info = {}
info.update(project._info)
- return zip(*sorted(info.iteritems()))
+ return zip(*sorted(six.iteritems(info)))
class DeleteProject(command.Command):
@@ -213,4 +214,4 @@ class ShowProject(show.ShowOne):
info = {}
info.update(project._info)
- return zip(*sorted(info.iteritems()))
+ return zip(*sorted(six.iteritems(info)))
diff --git a/openstackclient/identity/v3/role.py b/openstackclient/identity/v3/role.py
index 9be3b784..5403d4cb 100644
--- a/openstackclient/identity/v3/role.py
+++ b/openstackclient/identity/v3/role.py
@@ -1,4 +1,4 @@
-# Copyright 2012-2013 OpenStack, LLC.
+# Copyright 2012-2013 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
@@ -16,6 +16,7 @@
"""Identity v3 Role action implementations"""
import logging
+import six
import sys
from cliff import command
@@ -123,7 +124,7 @@ class CreateRole(show.ShowOne):
identity_client = self.app.client_manager.identity
role = identity_client.roles.create(parsed_args.name)
- return zip(*sorted(role._info.iteritems()))
+ return zip(*sorted(six.iteritems(role._info)))
class DeleteRole(command.Command):
@@ -296,4 +297,4 @@ class ShowRole(show.ShowOne):
role = utils.find_resource(identity_client.roles,
parsed_args.role)
- return zip(*sorted(role._info.iteritems()))
+ return zip(*sorted(six.iteritems(role._info)))
diff --git a/openstackclient/identity/v3/service.py b/openstackclient/identity/v3/service.py
index 5c82284c..77efbead 100644
--- a/openstackclient/identity/v3/service.py
+++ b/openstackclient/identity/v3/service.py
@@ -1,4 +1,4 @@
-# Copyright 2012-2013 OpenStack, LLC.
+# Copyright 2012-2013 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
@@ -16,6 +16,7 @@
"""Identity v3 Service action implementations"""
import logging
+import six
import sys
from cliff import command
@@ -62,7 +63,7 @@ class CreateService(show.ShowOne):
parsed_args.type,
parsed_args.enabled)
- return zip(*sorted(service._info.iteritems()))
+ return zip(*sorted(six.iteritems(service._info)))
class DeleteService(command.Command):
@@ -178,4 +179,4 @@ class ShowService(show.ShowOne):
service = utils.find_resource(identity_client.services,
parsed_args.service)
- return zip(*sorted(service._info.iteritems()))
+ return zip(*sorted(six.iteritems(service._info)))
diff --git a/openstackclient/identity/v3/user.py b/openstackclient/identity/v3/user.py
index 8ee535dc..b90527a3 100644
--- a/openstackclient/identity/v3/user.py
+++ b/openstackclient/identity/v3/user.py
@@ -1,4 +1,4 @@
-# Copyright 2012-2013 OpenStack, LLC.
+# Copyright 2012-2013 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
@@ -16,6 +16,7 @@
"""Identity v3 User action implementations"""
import logging
+import six
import sys
from cliff import command
@@ -106,7 +107,7 @@ class CreateUser(show.ShowOne):
info = {}
info.update(user._info)
- return zip(*sorted(info.iteritems()))
+ return zip(*sorted(six.iteritems(info)))
class DeleteUser(command.Command):
@@ -355,4 +356,4 @@ class ShowUser(show.ShowOne):
info = {}
info.update(user._info)
- return zip(*sorted(info.iteritems()))
+ return zip(*sorted(six.iteritems(info)))