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

Commit f1f1abf

Browse files
authored
Merge pull request #1570 from thedadams/info-extra-data
Print extra data field in info
2 parents fbe46bc + e29c091 commit f1f1abf

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)