lib, pgraph, resources: Refactor data association API
This should make things cleaner and help avoid as much churn every time we change a property.
This commit is contained in:
@@ -440,6 +440,7 @@ func (obj *Main) Run() error {
|
||||
newGraph.Flags = pgraph.Flags{Debug: obj.Flags.Debug}
|
||||
// pass in the information we need
|
||||
newGraph.AssociateData(&resources.Data{
|
||||
Hostname: hostname,
|
||||
Converger: converger,
|
||||
Prometheus: prom,
|
||||
Prefix: pgraphPrefix,
|
||||
|
||||
Reference in New Issue
Block a user