From 96e14180c40c5ccc2a12da69912239b3cccfb4af Mon Sep 17 00:00:00 2001 From: Soam Vasani Date: Tue, 15 Nov 2016 14:04:32 -0800 Subject: [PATCH] Don't check controller filestore path It's created on-demand by fileStore. --- fission-bundle/main.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/fission-bundle/main.go b/fission-bundle/main.go index d1876f5d..95603bbf 100644 --- a/fission-bundle/main.go +++ b/fission-bundle/main.go @@ -13,14 +13,7 @@ import ( ) func runController(port int, etcdUrl string, filepath string) { - _, err := os.Stat(filepath) - if err != nil { - if os.IsNotExist(err) { - log.Fatalf("Error: path %v does not exist", filepath) - } else { - log.Fatalf("Error: can't access path %v", filepath) - } - } + // filePath will be created if it doesn't exist. fileStore := controller.MakeFileStore(filepath) rs, err := controller.MakeResourceStore(fileStore, []string{etcdUrl})