func()

in internal/provider/module_source_function.go [37:48]


func (m *ModuleSourceFunction) Run(ctx context.Context, req function.RunRequest, resp *function.RunResponse) {
	var modulePath string
	resp.Error = function.ConcatFuncErrors(req.Arguments.Get(ctx, &modulePath))
	if resp.Error != nil {
		return
	}
	model := &ModuleSourceDataSourceModel{}
	model.ModulePath = types.StringValue(modulePath)
	model = withModuleSourceAndVersion(model)
	s := model.ModuleSource.ValueString()
	resp.Error = function.ConcatFuncErrors(resp.Result.Set(ctx, s))
}