From ac6abd608f2a9410e1ac4d34809cea2c46291347 Mon Sep 17 00:00:00 2001 From: Matt Butcher Date: Mon, 12 Oct 2015 14:46:44 -0600 Subject: [PATCH] During auth generation, create directory if it does not exist. Addresses issue #902 --- controller-main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controller-main.go b/controller-main.go index 8ec103327..0acfedd0d 100644 --- a/controller-main.go +++ b/controller-main.go @@ -115,6 +115,9 @@ func genAuthFirstTime() (*AuthConfig, *probe.Error) { if isAuthConfigFileExists() { return nil, nil } + if err := createAuthConfigPath(); err != nil { + return nil, err + } // Initialize new config, since config file doesn't exist yet config := &AuthConfig{} config.Version = "0.0.1"