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})