Don't check controller filestore path

It's created on-demand by fileStore.
This commit is contained in:
Soam Vasani
2016-11-15 14:04:32 -08:00
parent 679590883d
commit 96e14180c4
+1 -8
View File
@@ -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})