Use exported module values in data packages
This commit is contained in:
@@ -16,7 +16,7 @@ import (
|
||||
"gopkg.in/yaml.v3"
|
||||
)
|
||||
|
||||
const SchemaVersion = "weatherreporter.data_package.v2"
|
||||
const SchemaVersion = "weatherreporter.data_package.v3"
|
||||
|
||||
const (
|
||||
metadataStanza = "metadata"
|
||||
@@ -133,7 +133,7 @@ func stanzasFromSnapshot(snapshot module.Snapshot) BriefingStanzas {
|
||||
order := make([]string, 0, len(snapshot.Outputs))
|
||||
for _, output := range snapshot.Outputs {
|
||||
order = append(order, output.StanzaName)
|
||||
values[output.StanzaName] = output.Value
|
||||
values[output.StanzaName] = output.DataPackageValue()
|
||||
}
|
||||
return BriefingStanzas{Order: order, Values: values}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user