cmd/cmd: use service namespace as store database (#1842)

This commit is contained in:
ben-toogood 2020-07-15 11:31:42 +01:00 committed by GitHub
parent f73ec65ac3
commit 0c19a87c89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -805,6 +805,8 @@ func (c *cmd) Before(ctx *cli.Context) error {
}
if len(ctx.String("store_database")) > 0 {
storeOpts = append(storeOpts, store.Database(ctx.String("store_database")))
} else if len(ctx.String("service_namespace")) > 0 {
storeOpts = append(storeOpts, store.Database(ctx.String("service_namespace")))
}
if len(ctx.String("store_table")) > 0 {
storeOpts = append(storeOpts, store.Table(ctx.String("store_table")))