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:
James Shubin
2017-03-04 04:01:32 -05:00
parent 8207e23cd9
commit 32aae8f57a
3 changed files with 12 additions and 13 deletions

View File

@@ -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,