modules/mu/config.rb in cloud-mu-2.0.0.pre.alpha9 vs modules/mu/config.rb in cloud-mu-2.0.0.pre.beta1
- old
+ new
@@ -196,10 +196,10 @@
cfg["description"] ||= ""
cfg["description"] = "+"+cloud.upcase+"+: "+cfg["description"]
if docschema["properties"][attrs[:cfg_plural]]["items"]["properties"][key]
schemaMerge(docschema["properties"][attrs[:cfg_plural]]["items"]["properties"][key], cfg, cloud)
docschema["properties"][attrs[:cfg_plural]]["items"]["properties"][key]["description"] ||= ""
- docschema["properties"][attrs[:cfg_plural]]["items"]["properties"][key]["description"] += "\n"+cfg["description"]
+ docschema["properties"][attrs[:cfg_plural]]["items"]["properties"][key]["description"] += "\n"+(cfg["description"].match(/^#/) ? "" : "# ")+cfg["description"]
MU.log "Munging #{cloud}-specific #{classname.to_s} schema into BasketofKittens => #{attrs[:cfg_plural]} => #{key}", MU::DEBUG, details: docschema["properties"][attrs[:cfg_plural]]["items"]["properties"][key]
else
if only_children[attrs[:cfg_plural]][key]
prefix = only_children[attrs[:cfg_plural]][key].keys.map{ |x| x.upcase }.join(" & ")+" ONLY"
cfg = prepend_descriptions(prefix, cfg)