Skip to content

Commit

Permalink
config: fix config parsing for new dbbackend option
Browse files Browse the repository at this point in the history
For the yaml parser, since the public attribute differs from the name of
the yaml field, we need to specify the `yaml` flag.
  • Loading branch information
Roasbeef committed Jul 5, 2023
1 parent 0b7df75 commit 6b74d8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ type Config struct {
ServeStatic bool `long:"servestatic" description:"Flag to enable or disable static content serving."`

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

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

0 comments on commit 6b74d8a

Please sign in to comment.