Skip to content

Commit c1dea36

Browse files
committed
config: fix config parsing for new dbbackend option
For the yaml parser, since the public attribute differs from the name of the yaml field, we need to specify the `yaml` flag.
1 parent 599eb2e commit c1dea36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ type Config struct {
161161
ServeStatic bool `long:"servestatic" description:"Flag to enable or disable static content serving."`
162162

163163
// DatabaseBackend is the database backend to be used by the server.
164-
DatabaseBackend string `long:"dbbackend" description:"The database backend to use for storing all asset related data." choice:"sqlite" choice:"postgres"`
164+
DatabaseBackend string `long:"dbbackend" description:"The database backend to use for storing all asset related data." choice:"sqlite" choice:"postgres" yaml:"dbbackend"`
165165

166166
// Sqlite is the configuration section for the SQLite database backend.
167167
Sqlite *aperturedb.SqliteConfig `group:"sqlite" namespace:"sqlite"`

0 commit comments

Comments
 (0)