From 62a2083a785bcfac25b2b7e409e1c7e066f9edff Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Fri, 5 Dec 2014 12:54:19 -0600 Subject: Fix ec2 credentials commands for new auth These commands were not updated for the new authentication model. Closes-Bug: 1399757 Change-Id: I5d4beb9d1fa6914fef5e4c7b459cdd967e614b24 --- openstackclient/identity/v2_0/ec2creds.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'openstackclient') 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) -- cgit v1.2.1