Skip to content

Commit

Permalink
Updated google csvStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
Trial97 authored and danbogos committed Mar 25, 2020
1 parent c59d418 commit 37cba7a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion engine/storage_csv.go
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,12 @@ func getClient(cfg *oauth2.Config, configPath string) (*http.Client, error) {
if err != nil {
return nil, err
}
saveToken(string(config.CgrConfig().LoaderCgrCfg().GapiToken[1:len(config.CgrConfig().LoaderCgrCfg().GapiToken)-1]), tok)
path2TokFileb := config.CgrConfig().LoaderCgrCfg().GapiToken
path2TokFile := string(path2TokFileb[1 : len(path2TokFileb)-1])
if err := os.MkdirAll(filepath.Dir(path2TokFile), os.FileMode(0777)); err != nil { // create the directory if not exists
return nil, err
}
saveToken(path2TokFile, tok)
} else if err = json.Unmarshal(raw, tok); err != nil {
return nil, err
}
Expand Down
1 change: 1 addition & 0 deletions packages/debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ cgrates (0.11.0~dev) UNRELEASED; urgency=medium
* [DiameterAgent] Added RAR support
* [Loader] Added support to load CSV files from URL
* [Loader] Added configurable gapi_credentials
* [Loader] Added configurable gapi_token

-- Alexandru Tripon <[email protected]> Wed, 19 Feb 2020 13:25:52 +0200

Expand Down

0 comments on commit 37cba7a

Please sign in to comment.