[Bug 1079611] Re: Download Juju Environment Config gives wrong credentials

Thomas Leonard 1079611 at bugs.launchpad.net
Fri Nov 16 10:27:38 UTC 2012


** Description changed:

  When I download the Juju configuration using "Download Juju Environment
- Config" in the dashboard, the EC2 credentials (    combined-key and
- secret-key) are wrong. If I download using "Download EC2 Credentials"
- then they are correct.
+ Config" in the dashboard, the EC2 credentials (combined-key and secret-
+ key) are wrong. If I download using "Download EC2 Credentials" then they
+ are correct.
  
- Comparing the code for these two, they are suspiciously difference:
+ Comparing the code for these two, they are suspiciously different:
  
  EC2:
  
-         def find_or_create_access_keys(request, tenant_id):
-             keys = api.keystone.list_ec2_credentials(request, request.user.id)
-             for key in keys:
-                 if key.tenant_id == tenant_id:
-                     return key
-             return api.keystone.create_ec2_credentials(request,
+         def find_or_create_access_keys(request, tenant_id):
+             keys = api.keystone.list_ec2_credentials(request, request.user.id)
+             for key in keys:
+                 if key.tenant_id == tenant_id:
+                     return key
+             return api.keystone.create_ec2_credentials(request,
  
  Juju:
  
-         def find_or_create_access_keys(request, tenant_id):
-             keys = api.keystone.list_ec2_credentials(request, request.user.id)
-             if keys:
-                 return keys[0]
-             else:
-                 return api.keystone.create_ec2_credentials(request,
+         def find_or_create_access_keys(request, tenant_id):
+             keys = api.keystone.list_ec2_credentials(request, request.user.id)
+             if keys:
+                 return keys[0]
+             else:
+                 return api.keystone.create_ec2_credentials(request,
  
  Copying the EC2 logic into the Juju file fixes it. This is with version
- 2012.2-0ubuntu2~cloud0, but it looks like its the same in trunk.
+ 2012.2-0ubuntu2~cloud0, but it looks like it's the same in trunk.
  
  Thanks,

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to horizon in Ubuntu.
https://bugs.launchpad.net/bugs/1079611

Title:
  Download Juju Environment Config gives wrong credentials

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/horizon/+bug/1079611/+subscriptions



More information about the Ubuntu-server-bugs mailing list