Open codefromthecrypt opened 11 years ago
cc @mattstep
Hi Adrian:
a few things:
ok, once you mention what this magic constant does, I'll update the issue accordingly.
as I said it refers to the name of the project under which GCE keeps the "public" resources. It should be documented for dev's sake but there's no reason an user should need or even have to know about it.
ok, I agree that this should be better documented, or better yet. removed.
If one enters the incorrect email address, the error relates to the http path including project
and that this property is constant is passed as a method arg for project
. This is so very unnecessarily confusing.
I'm changing the issue to remove this confusion now and will ping back.
ok. changed the issue. you are correct that my google id works, so I'll mention this issue isn't a blocker
So this issue only refers to:
No it refers to deleting the constant and instead expose a no arg method for ImageApi
On Sunday, March 10, 2013, David Ribeiro Alves wrote:
So this issue only refers to:
- changing the name of the constant to something like PUBLIC_PROJECT_ID
- documenting it
— Reply to this email directly or view it on GitHubhttps://github.com/jclouds/jclouds-labs/issues/4#issuecomment-14693367 .
When a user specifies the wrong email address for their account, an authorization error occurs relating to project.
A savvy person would know that the email is wrong, and I should have re-read the README before blindly hunting. Even if it was my fault, crud in GoogleComputeConstants is distracting, particularly GOOGLE_PROJECT which shows up in grep.
Rather than having curious hard-coded constants, wouldn't it be better to make a special method that says what it does. I understand from @dralves that this is the project for public resources. So far as I can tell, this constant is only used in the compute service adapter for public images.e
Why not just make a method for that and remove the constant, such as we do in aws for the default zone?