Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.

Commit e29c091

Browse files
committed
Print extra data field in info
A previous change moved the extra data field on the Info. This led to the field not being printed when using the acorn info command. This change ensures the field is printed. Signed-off-by: Donnie Adams <donnie@acorn.io>
1 parent fbe46bc commit e29c091

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/cli/info.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ func (s *Info) Run(cmd *cobra.Command, _ []string) error {
6161
// Format data from info response into map of project name to info response
6262
for _, subInfo := range info {
6363
// Remove unset fields in the config and userConfig
64-
regionInfo := make(map[string]any, len(subInfo.Regions))
64+
regionInfo := make(map[string]any, len(subInfo.Regions)+1)
65+
if len(subInfo.ExtraData) > 0 {
66+
regionInfo["extraData"] = subInfo.ExtraData
67+
}
6568
for region, spec := range subInfo.Regions {
6669
specMap, err := removeUnsetFields(spec, "config", "userConfig")
6770
if err != nil {

0 commit comments

Comments
 (0)