Jakob Meng
4dc6c421db
Refactored security_group_rule{,_info} modules
...
Change-Id: Ie953bee843a43b945d24d6152766b3ae418f797c
2023-01-11 07:37:18 +01:00
anbanerj
fb0fb529b7
Makes security_group_rule_info compatible with new sdk version
...
- Changed get_security_group_rule to find_security_group_rule as
get_security_group_rule throws an exception if the rule is not
found
- Updated docs
- Updated tests
- Renamed ethertype to ether_type to match openstacksdk's attribute
names and added the former as an alias to keep backward compat
- Renamed rule to id to match openstacksdk's attribute names and
added the former as an alias to keep backward compat
Change-Id: Ieb99f875c990e11623c81e482013d0ecb8e61055
2022-09-21 00:27:25 +00:00
Jakob Meng
0b2b56765c
Fixed Python shebang and UTF-8 coding in modules
...
Be consistent with Ansible docs [1], [2], [3].
[1] https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_documenting.html
[2] https://docs.ansible.com/ansible-core/devel/dev_guide/testing/sanity/shebang.html
[3] b86a18bd27/test/lib/ansible_test/_util/controller/sanity/code-smell/shebang.py
Change-Id: Ia3976bb3fcca662cefa219edeef057bcb7143c01
2022-07-28 10:03:09 +02:00
Jakob Meng
0215e2a5d4
Dropped default module options
...
Removed default=None, type='str' and required=False from all module's
argument_specs with
sed -i \
-e 's/default=None, //g' \
-e 's/default=None,//g' \
-e 's/default=None//g' \
-e "s/type='str', //g" \
-e "s/type='str',//g" \
-e "s/type='str'//g" \
-e 's/required=False, //g' \
-e 's/required=False,//g' \
-e 's/required=False//g' \
plugins/modules/*.py plugins/module_utils/*.py
and manually cleaned the results because those options values are the
default in Ansible.
Ref.: https://docs.ansible.com/ansible/latest/dev_guide/developing_program_flow_modules.html#argument-spec
Change-Id: Icbc3bb84269d3b8205fac259300902ebdaf6a3ae
2022-07-27 12:39:44 +02:00
Sagi Shnaidman
2d554d1e22
Add support check mode for all info modules
...
As it's required by new ansible-test rules.
See https://github.com/ansible-collections/overview/issues/45#issuecomment-893543025
Change-Id: Ib6b73e810b972997b8de2b4a9eb8e07e246823d5
2021-08-16 15:56:27 +03:00
tischrei
51a9731cef
Add security_group_rule_info module
...
Let's add a new missing module for getting info about security group rules.
Change-Id: Iba2fe66c4bd19ab66f8e35c091ed4c0ea423efd1
2021-01-28 10:43:26 +00:00