summaryrefslogtreecommitdiff
path: root/openstackclient
diff options
context:
space:
mode:
authorDean Troyer <dtroyer@gmail.com>2014-12-05 12:54:19 -0600
committerDean Troyer <dtroyer@gmail.com>2014-12-05 12:54:22 -0600
commit62a2083a785bcfac25b2b7e409e1c7e066f9edff (patch)
treee1cb03d053eb804a27108aa801a9c8fd4264ae95 /openstackclient
parenta977748414ca960e2e42188d48477b8033478f79 (diff)
downloadpython-openstackclient-62a2083a785bcfac25b2b7e409e1c7e066f9edff.tar.gz
Fix ec2 credentials commands for new auth
These commands were not updated for the new authentication model. Closes-Bug: 1399757 Change-Id: I5d4beb9d1fa6914fef5e4c7b459cdd967e614b24
Diffstat (limited to 'openstackclient')
-rw-r--r--openstackclient/identity/v2_0/ec2creds.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/openstackclient/identity/v2_0/ec2creds.py b/openstackclient/identity/v2_0/ec2creds.py
index fd8eef84..7a4dea66 100644
--- a/openstackclient/identity/v2_0/ec2creds.py
+++ b/openstackclient/identity/v2_0/ec2creds.py
@@ -57,7 +57,7 @@ class CreateEC2Creds(show.ShowOne):
).id
else:
# Get the project from the current auth
- project = identity_client.auth_tenant_id
+ project = self.app.client_manager.auth_ref.project_id
if parsed_args.user:
user = utils.find_resource(
identity_client.users,
@@ -65,7 +65,7 @@ class CreateEC2Creds(show.ShowOne):
).id
else:
# Get the user from the current auth
- user = identity_client.auth_user_id
+ user = self.app.client_manager.auth_ref.user_id
creds = identity_client.ec2.create(user, project)
@@ -104,7 +104,7 @@ class DeleteEC2Creds(command.Command):
).id
else:
# Get the user from the current auth
- user = identity_client.auth_user_id
+ user = self.app.client_manager.auth_ref.user_id
identity_client.ec2.delete(user, parsed_args.access_key)
@@ -134,7 +134,7 @@ class ListEC2Creds(lister.Lister):
).id
else:
# Get the user from the current auth
- user = identity_client.auth_user_id
+ user = self.app.client_manager.auth_ref.user_id
columns = ('access', 'secret', 'tenant_id', 'user_id')
column_headers = ('Access', 'Secret', 'Project ID', 'User ID')
@@ -177,7 +177,7 @@ class ShowEC2Creds(show.ShowOne):
).id
else:
# Get the user from the current auth
- user = identity_client.auth_user_id
+ user = self.app.client_manager.auth_ref.user_id
creds = identity_client.ec2.get(user, parsed_args.access_key)