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

Automatically detect ENV variables #765

Merged
merged 1 commit into from
Dec 27, 2014

Conversation

kzaitsev
Copy link

this MR adds support for boot2docker

} else {
return ""
}
}

Choose a reason for hiding this comment

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

this could be simplified to the following:

func getHost() string {
   return os.Getenv("DOCKER_HOST")
}

since Getenv will return an empty string if the environment variable doesn't exist :)

@kzaitsev
Copy link
Author

@bradrydzewski done

@bradrydzewski
Copy link

thanks for this!

bradrydzewski added a commit that referenced this pull request Dec 27, 2014
Automatically detect ENV variables
@bradrydzewski bradrydzewski merged commit 4693b1f into harness:master Dec 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants