Skip to content

Commit 559a94e

Browse files
authored
Merge pull request #45 from bbigras/patch-1
jetstream/util.go: fix password auth
2 parents 25dd078 + a6340ec commit 559a94e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jetstream/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ func connectMgr(d *schema.ResourceData) (interface{}, error) {
355355
}
356356

357357
switch {
358-
case props.user != "" && props.pass == "":
358+
case props.user != "" && props.pass != "":
359359
opts = append(opts, nats.UserInfo(props.user, props.pass))
360360
case props.user != "":
361361
opts = append(opts, nats.Token(props.user))

0 commit comments

Comments
 (0)