Merge pull request #230 from smore-lore/master

bpmodify: add argument if it is missing
This commit is contained in:
Dan Willemsen 2018-12-26 16:43:54 -08:00 committed by GitHub
commit 716137ec38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,