From 3a581030b599c245ba45d511766a72efca3ed56e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=C3=A1n=20C=20McCord?= Date: Fri, 20 Apr 2018 13:36:39 -0400 Subject: [PATCH] add support for CLOUD_PROVIDER environment variable --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index 5027262..7ea85cd 100644 --- a/main.go +++ b/main.go @@ -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