mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Removing accounts (build.sh runs)
This commit is contained in:
committed by
Dan Christian Bogos
parent
06f648b987
commit
51c201e50e
@@ -76,7 +76,7 @@ func NewCSVStorage(sep rune,
|
||||
actionsFn, actiontimingsFn, actiontriggersFn, accountactionsFn,
|
||||
resProfilesFn, statsFn, thresholdsFn, filterFn, routeProfilesFn,
|
||||
attributeProfilesFn, chargerProfilesFn, dispatcherProfilesFn, dispatcherHostsFn,
|
||||
rateProfilesFn, actionProfilesFn, accountProfilesFn []string) *CSVStorage {
|
||||
rateProfilesFn, actionProfilesFn []string) *CSVStorage {
|
||||
return &CSVStorage{
|
||||
sep: sep,
|
||||
generator: NewCsvFile,
|
||||
@@ -102,7 +102,6 @@ func NewCSVStorage(sep rune,
|
||||
dispatcherHostsFn: dispatcherHostsFn,
|
||||
rateProfilesFn: rateProfilesFn,
|
||||
actionProfilesFn: actionProfilesFn,
|
||||
accountProfilesFn: accountProfilesFn,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -134,7 +133,6 @@ func NewFileCSVStorage(sep rune, dataPath string) *CSVStorage {
|
||||
dispatcherhostsPaths := appendName(allFoldersPath, utils.DispatcherHostsCsv)
|
||||
rateProfilesFn := appendName(allFoldersPath, utils.RateProfilesCsv)
|
||||
actionProfilesFn := appendName(allFoldersPath, utils.ActionProfilesCsv)
|
||||
accountProfilesFn := appendName(allFoldersPath, utils.AccountProfilesCsv)
|
||||
return NewCSVStorage(sep,
|
||||
destinationsPaths,
|
||||
timingsPaths,
|
||||
@@ -158,7 +156,6 @@ func NewFileCSVStorage(sep rune, dataPath string) *CSVStorage {
|
||||
dispatcherhostsPaths,
|
||||
rateProfilesFn,
|
||||
actionProfilesFn,
|
||||
accountProfilesFn,
|
||||
)
|
||||
}
|
||||
|
||||
@@ -177,7 +174,7 @@ func NewStringCSVStorage(sep rune,
|
||||
[]string{resProfilesFn}, []string{statsFn}, []string{thresholdsFn}, []string{filterFn},
|
||||
[]string{routeProfilesFn}, []string{attributeProfilesFn}, []string{chargerProfilesFn},
|
||||
[]string{dispatcherProfilesFn}, []string{dispatcherHostsFn}, []string{rateProfilesFn},
|
||||
[]string{actionProfilesFn}, []string{accountProfilesFn})
|
||||
[]string{actionProfilesFn})
|
||||
c.generator = NewCsvString
|
||||
return c
|
||||
}
|
||||
@@ -220,8 +217,7 @@ func NewGoogleCSVStorage(sep rune, spreadsheetID string) (*CSVStorage, error) {
|
||||
getIfExist(utils.DispatcherProfiles),
|
||||
getIfExist(utils.DispatcherHosts),
|
||||
getIfExist(utils.RateProfiles),
|
||||
getIfExist(utils.ActionProfiles),
|
||||
getIfExist(utils.AccountProfilesString))
|
||||
getIfExist(utils.ActionProfiles))
|
||||
c.generator = func() csvReaderCloser {
|
||||
return &csvGoogle{
|
||||
spreadsheetID: spreadsheetID,
|
||||
@@ -255,7 +251,6 @@ func NewURLCSVStorage(sep rune, dataPath string) *CSVStorage {
|
||||
var dispatcherhostsPaths []string
|
||||
var rateProfilesPaths []string
|
||||
var actionProfilesPaths []string
|
||||
var accountProfilesPaths []string
|
||||
|
||||
for _, baseURL := range strings.Split(dataPath, utils.InfieldSep) {
|
||||
if !strings.HasSuffix(baseURL, utils.CSVSuffix) {
|
||||
@@ -281,7 +276,6 @@ func NewURLCSVStorage(sep rune, dataPath string) *CSVStorage {
|
||||
dispatcherhostsPaths = append(dispatcherhostsPaths, joinURL(baseURL, utils.DispatcherHostsCsv))
|
||||
rateProfilesPaths = append(rateProfilesPaths, joinURL(baseURL, utils.RateProfilesCsv))
|
||||
actionProfilesPaths = append(actionProfilesPaths, joinURL(baseURL, utils.ActionProfilesCsv))
|
||||
accountProfilesPaths = append(accountProfilesPaths, joinURL(baseURL, utils.AccountProfilesCsv))
|
||||
continue
|
||||
}
|
||||
switch {
|
||||
@@ -329,8 +323,6 @@ func NewURLCSVStorage(sep rune, dataPath string) *CSVStorage {
|
||||
rateProfilesPaths = append(rateProfilesPaths, baseURL)
|
||||
case strings.HasSuffix(baseURL, utils.ActionProfilesCsv):
|
||||
actionProfilesPaths = append(actionProfilesPaths, baseURL)
|
||||
case strings.HasSuffix(baseURL, utils.AccountProfilesCsv):
|
||||
accountProfilesPaths = append(accountProfilesPaths, baseURL)
|
||||
|
||||
}
|
||||
}
|
||||
@@ -358,7 +350,6 @@ func NewURLCSVStorage(sep rune, dataPath string) *CSVStorage {
|
||||
dispatcherhostsPaths,
|
||||
rateProfilesPaths,
|
||||
actionProfilesPaths,
|
||||
accountProfilesPaths,
|
||||
)
|
||||
c.generator = func() csvReaderCloser {
|
||||
return &csvURL{}
|
||||
|
||||
Reference in New Issue
Block a user