Skip to content

Commit 5529406

Browse files
committed
Omit user in sqlconfig context if it isn't provided
1 parent cfea96b commit 5529406

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/modern/sqlconfig/sqlconfig.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type Endpoint struct {
3131

3232
type ContextDetails struct {
3333
Endpoint string `mapstructure:"endpoint"`
34-
User *string `mapstructure:"user,omitempty"`
34+
User *string `mapstructure:"user,omitempty" yaml:"user,omitempty"`
3535
}
3636

3737
type Context struct {

0 commit comments

Comments
 (0)