Merge "Remove containersInfo, complianceMetadataInfo and aconfigFilePaths from ModuleBase." into main
This commit is contained in:
@@ -223,7 +223,6 @@ var containerBoundaryFunctionsTable = map[*container]containerBoundaryFunc{
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
type InstallableModule interface {
|
||||
ContainersInfo() ContainersInfo
|
||||
StaticDependencyTags() []blueprint.DependencyTag
|
||||
DynamicDependencyTags() []blueprint.DependencyTag
|
||||
}
|
||||
@@ -417,7 +416,7 @@ func generateContainerInfo(ctx ModuleContext) ContainersInfo {
|
||||
|
||||
func getContainerModuleInfo(ctx ModuleContext, module Module) (ContainersInfo, bool) {
|
||||
if ctx.Module() == module {
|
||||
return module.ContainersInfo(), true
|
||||
return ctx.getContainersInfo(), true
|
||||
}
|
||||
|
||||
return OtherModuleProvider(ctx, module, ContainersInfoProvider)
|
||||
@@ -432,7 +431,7 @@ func setContainerInfo(ctx ModuleContext) {
|
||||
|
||||
if _, ok := ctx.Module().(InstallableModule); ok {
|
||||
containersInfo := generateContainerInfo(ctx)
|
||||
ctx.Module().base().containersInfo = containersInfo
|
||||
ctx.setContainersInfo(containersInfo)
|
||||
SetProvider(ctx, ContainersInfoProvider, containersInfo)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user