From bb8d0cacb6eea0195d82dbc34987b2033c023e63 Mon Sep 17 00:00:00 2001 From: Tom Limoncelli Date: Tue, 11 Dec 2018 11:56:06 -0500 Subject: [PATCH] Warn (but don't fail) if creds.json file does not exist (#425) --- providers/config/providerConfig.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/providers/config/providerConfig.go b/providers/config/providerConfig.go index 25dd0d035..fbb2d77da 100644 --- a/providers/config/providerConfig.go +++ b/providers/config/providerConfig.go @@ -6,6 +6,7 @@ package config import ( "encoding/json" + "fmt" "os" "strings" @@ -21,6 +22,7 @@ func LoadProviderConfigs(fname string) (map[string]map[string]string, error) { if err != nil { // no creds file is ok. Bind requires nothing for example. Individual providers will error if things not found. if os.IsNotExist(err) { + fmt.Printf("INFO: Config file %q does not exist. Skipping.\n", fname) return results, nil } return nil, errors.Errorf("While reading provider credentials file %v: %v", fname, err)