bpmodify: add argument if it is missing
before, adding to a list which had no entries would do nothing (and not throw any errors). Now it will create the list and add a single element as expected. Change-Id: I8c48a42303f7d9b3741868ad86097e2071ec434a
This commit is contained in:
parent
f8565113e1
commit
b40aaadbca
1 changed files with 8 additions and 1 deletions
|
@ -148,7 +148,14 @@ func processModule(module *parser.Module, moduleName string,
|
|||
}
|
||||
}
|
||||
|
||||
return false, nil
|
||||
prop := parser.Property{Name: *parameter, Value: &parser.List{}}
|
||||
modified, errs = processParameter(prop.Value, *parameter, moduleName, file)
|
||||
|
||||
if modified {
|
||||
module.Properties = append(module.Properties, &prop)
|
||||
}
|
||||
|
||||
return modified, errs
|
||||
}
|
||||
|
||||
func processParameter(value parser.Expression, paramName, moduleName string,
|
||||
|
|
Loading…
Reference in a new issue