Skip to content

Commit

Permalink
fixed reference to config struct field
Browse files Browse the repository at this point in the history
  • Loading branch information
caffix committed Jul 18, 2023
1 parent 06eeaf6 commit 56df372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datasrcs/scripting/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (s *Script) dataSourceConfig(L *lua.LState) int {
tb.RawSetString("ttl", lua.LNumber(cfg.TTL))
}

if creds := s.sys.Config().DatasrcConfigs.GetCredentials(cfg.Name); creds != nil {
if creds := s.sys.Config().DataSrcConfigs.GetCredentials(cfg.Name); creds != nil {
c := L.NewTable()

c.RawSetString("name", lua.LString(creds.Name))
Expand Down

0 comments on commit 56df372

Please sign in to comment.