Merge "Add info to json module graph about CreateModule"

This commit is contained in:
Treehugger Robot 2022-05-24 19:20:28 +00:00 committed by Gerrit Code Review
commit 54c00c6618

View file

@ -2255,6 +2255,7 @@ type JsonModule struct {
Deps []jsonDep Deps []jsonDep
Type string Type string
Blueprint string Blueprint string
CreatedBy *string
Module map[string]interface{} Module map[string]interface{}
} }
@ -2292,6 +2293,10 @@ func jsonModuleFromModuleInfo(m *moduleInfo) *JsonModule {
Blueprint: m.relBlueprintsFile, Blueprint: m.relBlueprintsFile,
Module: make(map[string]interface{}), Module: make(map[string]interface{}),
} }
if m.createdBy != nil {
n := m.createdBy.Name()
result.CreatedBy = &n
}
if j, ok := m.logicModule.(JSONDataSupplier); ok { if j, ok := m.logicModule.(JSONDataSupplier); ok {
j.AddJSONData(&result.Module) j.AddJSONData(&result.Module)
} }