diff --git a/cns/service/main.go b/cns/service/main.go index 21f92c94da..62b6c88fd3 100644 --- a/cns/service/main.go +++ b/cns/service/main.go @@ -154,6 +154,12 @@ func main() { return } + err = acn.CreateDirectory(platform.CNMRuntimePath) + if err != nil { + fmt.Printf("Failed to create File Store directory Error:%v", err.Error()) + return + } + // Create the key value store. pluginConfig.Store, err = store.NewJsonFileStore(platform.CNMRuntimePath + pluginName + ".json") if err != nil {