Skip to content

Commit

Permalink
add support for CLOUD_PROVIDER environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulexus committed Apr 20, 2018
1 parent 0d3bdf3 commit 3a58103
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ type Response struct {
}

func main() {
if os.Getenv("CLOUD_PROVIDER") != "" {
provider = os.Getenv("CLOUD_PROVIDER")
}

flag.Parse()

var discoverer discover.Discoverer
Expand Down

0 comments on commit 3a58103

Please sign in to comment.