Carlos
Many thanks for following up.
In some guides for the Python SDK it is stated that the SDK will use the local settings for the project. It makes sense that it should do so, but I can't see how.
As matters stand now. It seems that one has to create environment variables with the zone and project, and then pass those values as command line arguments to Python script.
Since the zone and project are already configured in the local SDK properties, creating environment variables, that are decoupled from the local settings, is quite likely to introduce errors. For example, one changes one's default project, but one forgets to change the environment variable.
Since this is so obviously cumbersome and fragile, it must be wrong.
I expect to hear from one of your colleagues about the environment variables bug that I raised for templates. I shall discuss this with them also.
Regards
Nathan
> --
> © 2017 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
>
> Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (
gce-dis...@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.
> ---
> You received this message because you are subscribed to a topic in the Google Groups "gce-discussion" group.
> To unsubscribe from this topic, visit
https://groups.google.com/d/topic/gce-discussion/B9nW41gqSWM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
gce-discussio...@googlegroups.com.
> To post to this group, send email to
gce-dis...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/gce-discussion/2534b9c8-ea31-4853-b46b-174b9e4f38d4%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.