mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Updated google csvStorage
This commit is contained in:
committed by
Dan Christian Bogos
parent
c59d418bef
commit
37cba7ae03
@@ -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
|
||||
}
|
||||
|
||||
@@ -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 <alexandru.tripon@itsyscom.com> Wed, 19 Feb 2020 13:25:52 +0200
|
||||
|
||||
|
||||
Reference in New Issue
Block a user