mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Update XmlProvider String() func
The comment specifies that it should display the already parsed values out of cache.
This commit is contained in:
committed by
Dan Christian Bogos
parent
889ec93288
commit
63e06dd86a
@@ -57,10 +57,7 @@ type XMLProvider struct {
|
||||
// String is part of engine.utils.DataProvider interface
|
||||
// when called, it will display the already parsed values out of cache
|
||||
func (xP *XMLProvider) String() string {
|
||||
|
||||
// TODO: Find a proper way to display xP as string. Right now it's returning an
|
||||
// empty string due to xmlquery.Node referencing itself.
|
||||
return utils.ToJSON(xP.req)
|
||||
return xP.cache.String()
|
||||
}
|
||||
|
||||
// FieldAsInterface is part of engine.utils.DataProvider interface
|
||||
|
||||
Reference in New Issue
Block a user