Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

providers/google: add external_address; needed for connection #454

Merged
merged 4 commits into from
Oct 21, 2014

Conversation

stuntgoat
Copy link
Contributor

Adding the external IP for Google instances.

@mitchellh
Copy link
Contributor

LGTM. While you're at it, you may want to also have google_compute_instance hint the connection info (see aws_instance). If it does this, then you wouldn't have to specify the connection info directly.

@mitchellh
Copy link
Contributor

Also, hey Isaac! :)

@stuntgoat
Copy link
Contributor Author

Hey Mitchell!


// resourceInstanceNatIP acquires the first NatIP with a "ONE_TO_ONE_NAT" type
// in the compute.NetworkInterface's AccessConfigs.
func resourceInstanceNatIP(iface *compute.NetworkInterface) (natIP string) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

named return values are ALMOST never used, don't think this is a good place to use it. But, I'll fix that style nitpick when I merge. :)

@mitchellh
Copy link
Contributor

LGTM. Thanks!

mitchellh added a commit that referenced this pull request Oct 21, 2014
providers/google: add external_address; needed for connection
@mitchellh mitchellh merged commit 4822419 into hashicorp:master Oct 21, 2014
@ghost ghost locked and limited conversation to collaborators May 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants