Skip to content

Commit 1272e17

Browse files
authored
Merge pull request #18 from taimaifika:hot-fix/mongodbc-options-is-null
Fix auth source validation in Activate method
2 parents 5553829 + 4e94e09 commit 1272e17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

component/mongodbc/mongodbc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func (m *mongoDbComponent) Activate(ctx sctx.ServiceContext) error {
123123
})
124124
}
125125
// validate auth source, return err
126-
if opts.Auth.AuthSource == "" {
126+
if m.authSource == "" {
127127
return errors.New("auth source is empty")
128128
}
129129

0 commit comments

Comments
 (0)