ansible.content_builder icon indicating copy to clipboard operation
ansible.content_builder copied to clipboard

Bus type default value is generated only for arg spec, not for documentation

Open machacekondra opened this issue 5 months ago • 1 comments

https://github.com/ansible-community/ansible.content_builder/blob/main/plugins/action/generate_cloud_modules.py#L410

If argument is bus, code generator generates default value as 0, but only for argument specification, not for the documentation itself, which isn't a valid module. The default value must be specified for both.

Most of the modules don't specify default values, default values are specified only as a description of argument, which is taken from API.

Why do we need to set the bus default value to 0?

It's failing the CI, and the documentation must be manually edited. Can we remove the generation of the default value = 0 for bus?

machacekondra avatar Mar 20 '24 15:03 machacekondra