H3 engine-config-lines, H3b engine-config-json: a template writes lines from a config value and the config as JSON
`${config-lines:<key>:<prefix>[:mib-bytes]}` in a file's content writes one line
per entry (nothing for an unset value or empty list; a newline in an entry
refuses the composition); `${config-json}` writes the module's set config values
as one JSON object. Both join the sweep's table of fillers. Their rows join the
config table test (A-22).
Builds: design 42 zfs-owns-zfs §3, §9; answers A-15, A-24, A-22
This commit is contained in:
@@ -83,6 +83,13 @@ func settingInto(resource map[string]any, layers []mcat.Layer, module string) er
|
||||
if !ok {
|
||||
return nil
|
||||
}
|
||||
content, err := configLinesInto(content, layers, module)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if content, err = configJSONInto(content, layers); err != nil {
|
||||
return err
|
||||
}
|
||||
for _, key := range settingsUsed(content) {
|
||||
value, set := settingValue(layers, key)
|
||||
if !set {
|
||||
|
||||
Reference in New Issue
Block a user