Commit Graph

169 Commits (31c8097e53ce88a61cab8a50e22c11048b633bc9)

Author SHA1 Message Date
janorga 31c8097e53
fix cli_parse: require connection (#357)
* fix cli_parse: require connection

* add changelog fragment

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-07-03 20:31:55 +05:30
Ruchi Pakhle 88acab517d
Prepare release v5.0.0 (#355)
* Prepare release v5.0.0

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-06-10 13:47:02 +00:00
Ruchi Pakhle 111b1158ec
Update ansible-core to 2.15.0 (#354)
* Update ansible-core to 2.15

* add release_summary

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-06-10 19:05:53 +05:30
Ruchi Pakhle cc2fc8b23f
Prepare release 4.1.0 (#350)
* Prepare release 4.1.0

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* review changes

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-04-15 18:39:45 +05:30
Marcin Lewandowski fc3a2a116b
fix: netaddr fallback to is_private when is_global is not available (#348)
* fix: netaddr fallback to is_private when is_global is not available

* fix: adjust fallback logic to edge cases

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix: address pylint errors

* fix: comment spacing in test task broken by prettier

* changelog update

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: Marcin Lewandowski <mlewandowski@pl.ibm.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ruchi Pakhle <ruchipakhle@gmail.com>
2024-04-15 16:11:26 +05:30
Nilashish Chakraborty 70442f5b85
Fix CHANGELOG.rst (#345)
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
2024-03-28 21:00:21 +05:30
Ruchi Pakhle 62f5a76d78
Prepare for major release 4.0.0 (#341)
* changelog PR

* update changelog

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update CHANGELOG.rst

* Update CHANGELOG.rst

* Update CHANGELOG.rst

Co-authored-by: Nilashish Chakraborty <nilashishchakraborty8@gmail.com>

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Nilashish Chakraborty <nilashishchakraborty8@gmail.com>
2024-03-28 12:31:52 +05:30
Ruchi Pakhle 1645351602
Remove Py27 compat files and update imports for magicmock and patch (#342)
* remove compat files and mock imports

* updates

* updates

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-03-28 11:30:53 +05:30
rizlas c176c23392
fix: netaddr is_private method deprecation (#338)
* fix: netaddr is_private method deprecation

* Update ipaddr.yaml

* Fix integretion test

* Update ipaddr.yaml

* Update main.yaml

* changelog: add changelog fragment about netaddr deprecation

* netaddr minimum version

---------

Co-authored-by: Ashwini Mhatre <amhatre@redhat.com>
2024-03-13 21:44:50 +05:30
Ashwini Mhatre 133c461ce4
Fix nightly runs (#334)
* Fix nightly runs

* Update test-requirements.txt

* Update test-requirements.txt

* Update test-requirements.txt

* Update config.yaml

---------

Co-authored-by: Ashwini Mhatre <amhatre@amhatre-thinkpadt14sgen2i.pnq.csb>
2024-02-16 15:49:45 +05:30
Ashwini Mhatre 2933ef2e37
Release 3.1.0 (#328)
* Release 3.1.0

* update galaxy version

---------

Co-authored-by: Ashwini Mhatre <amhatre@amhatre-thinkpadt14sgen2i.pnq.csb>
Co-authored-by: KB-perByte <sagpaul@redhat.com>
2024-01-30 21:19:11 +05:30
Ashwini Mhatre 8dc11de0a9
Avoid unnecessary use of a persistent connection (#326)
* Avoid unnecessary use of a persistent connection

* Address review comments

* Update add_require_Connection.yaml

---------

Co-authored-by: Ashwini Mhatre <amhatre@amhatre-thinkpadt14sgen2i.pnq.csb>
2024-01-23 12:31:57 +05:30
Ashwini Mhatre 92903a3a58
Enhance fact_diff to show common lines (#323)
* Enhance fact_diff to show common lines

* Add integration and unit tests

* Fix sanity

---------

Co-authored-by: Ashwini Mhatre <amhatre@amhatre-thinkpadt14sgen2i.pnq.csb>
2024-01-16 17:55:39 +05:30
Akira Yokochi 259cb8b9e4
docs: Fixed validate lookup plugin and module filter examples in document (#325)
* fix validate examples

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-16 14:44:01 +05:30
Akira Yokochi 6842746a9d
docs: Fixed ipv6form filter document (#320)
* fix ipv6form doc

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add changelog fragment

* rename

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ashwini Mhatre <mashu97@gmail.com>
2024-01-04 14:57:55 +05:30
Ashwini Mhatre 23c7f10479
Prepare for release 3.0.0 (#316)
Co-authored-by: Ashwini Mhatre <amhatre@amhatre-thinkpadt14sgen2i.pnq.csb>
2023-11-30 17:02:09 +05:30
Ashwini Mhatre 1424233e33
Prepare for major release (#315)
* Prepare for major release

* Add config.yml

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update update_requires_ansible.yaml

---------

Co-authored-by: Ashwini Mhatre <amhatre@amhatre-thinkpadt14sgen2i.pnq.csb>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-11-30 15:56:37 +05:30
Ashwini Mhatre 1e63ff3682
Prepare for release 2.12.0 (#312)
Co-authored-by: Ashwini Mhatre <amhatre@amhatre-thinkpadt14sgen2i.pnq.csb>
2023-11-27 17:18:28 +05:30
Ashwini Mhatre 4f07a4afca
fact_diff filter plugin (#310)
* Add fact_diff filter plugin

* Add integration and unit tests

* Add changelog

* Add argspect test

* Add examples

* Fix lint

* Fix ansible-lint

* REvert changes

* Fix sanity

* Address review comments

* Delete tests/integration/inventory

---------

Co-authored-by: Ashwini Mhatre <amhatre@amhatre-thinkpadt14sgen2i.pnq.csb>
2023-11-13 11:28:43 +05:30
Sagar Paul 1a336fb88a
prepare release 2.11.0 (#304)
* prepare release 2.11.0

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-09-07 14:27:47 +05:30
Ashwini Mhatre 4deddf2c3b
Feature ipv6 format (#295)
* Create ipv6form.py

* Update ipv6form.py

* Update ipv6form.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add code

* Add docs

* Add uts and integration tests. fix sanity

* iFix sanity

* Fix sanity

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ashwini Mhatre <amhatre@amhatre-thinkpadt14sgen2i.pnq.csb>
2023-08-10 13:40:17 +05:30
Ashwini Mhatre ce5e10c004
Add ipcut filter plugin (#291)
* Add ipcut filter plugin

* Add testcases

* Add testcases

* Fix sanity

* Fix sanity

* Fix sanity

* Fix ansible-lint

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update ipcut.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fix sanity

* Fix sanity

* iFix sanity

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ashwini Mhatre <amhatre@amhatre-thinkpadt14sgen2i.pnq.csb>
2023-08-07 16:19:33 +05:30
Ashwini Mhatre 827e88dfbf
Bugfix ip4 hex (#292)
* Fix bug in ipv4_hex filter.

* Fix issue in ipv4_hex

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update tests/integration/targets/utils_ipaddr_filter/tasks/ip4_hex.yaml

Co-authored-by: Sagar Paul <sagpaul@redhat.com>

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Sagar Paul <sagpaul@redhat.com>
2023-07-20 11:46:34 +05:30
Ansible Bot ad36d3db99
Changelog updated (#282)
Co-authored-by: Ansible Bot <devtools@ansible.com>
2023-05-19 13:42:30 +05:30
Ansible Bot c0e094637f
Changelog updated (#280)
Co-authored-by: Ansible Bot <devtools@ansible.com>
2023-05-18 11:31:30 +05:30
Sagar Paul 0fcbb14ab8
add release summary for 2.10.3 (#279) 2023-05-18 11:10:36 +05:30
Ansible Bot d47a286dec
Changelog updated (#277)
Co-authored-by: Ansible Bot <devtools@ansible.com>
2023-05-17 17:18:33 +05:30
Sagar Paul 7d4fa2bc56
CI enhancements (#276)
* CI enhancements

* changelog fix

* fix names
2023-05-17 16:27:48 +05:30
Ansible Bot eeec23e506
Changelog updated (#273)
Co-authored-by: Ansible Bot <devtools@ansible.com>
2023-05-17 15:17:53 +05:30
Sagar Paul a9610b7142
remove autoversion (#269)
* revert autoversion

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add changelog entry

* remove autoversion

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-05-16 15:11:24 +05:30
Sagar Paul 30e6241be7
prep release for 2.10.2 (#265)
* prep release for 2.10.2

* add token cron

* Update token_refresh.yml

* remove dangling changelog

* revert changelog deletion

* remove dangling fragment 2

* fix workflow

* update safe to test

---------

Co-authored-by: Bradley A. Thornton <bthornto@redhat.com>
2023-05-15 20:31:48 +05:30
Sebastian Wiesinger c2231a6b20
Update jsonschema validator (#226)
* Update jsonschema validator

Update jsonschema validator to support newer drafts. It now supports
drafts 2019-09 and 2020-12.

The logic for choosing the jsonschema validator class has changed so
that the following enhancements are available:

- When no draft is explicitly specified we now use use the validator
  draft that is specified in the "$schema" field of the criteria. This
  is done by the jsonschema module by default and should support
  possible future drafts without any changes to this code.

- Optionally allow to disable format checks in the code. As format
  checks are not required by the spec there might be situations where
  people want to disable them.

* Update requirements.txt

* Skip all tests which dependas on jsonschema 4.5

* jsonschema: Refactor code to support python 3.6

* Fix jsonschema requirements for python<3.7

* jsonschema: Update code for compatibility

* Better documentation and error handling for missing schema specifications

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ashwini Mhatre <amhatre@redhat.com>
Co-authored-by: ashwini-mhatre <mashu97@gmail.com>
2023-04-05 11:01:12 -04:00
Vinay M ed6555526d
Fixed the netaddr error msg for clarity (#244)
* Fixed the netaddr error msg for clarity

* added changelog

* Used missing_required_lib

---------

Co-authored-by: Kate Case <kcase@redhat.com>
2023-04-05 18:54:10 +05:30
Kate Case 9668f26a26
Update pre-commit config (#245)
* Update pre-commit config
2023-03-29 18:18:57 -04:00
Ashwini Mhatre 9acd289915
Fix pre commit (#239)
* Fix auto-commit

* Update changelog

* Update .pre-commit-config.yaml
2023-01-30 21:01:43 +05:30
Ashwini Mhatre b18c096d06
Prepare for 2.9.0 (#238) 2023-01-30 14:25:55 +05:30
Ashwini Mhatre fca1229097
Added support to disable xml declartion with full_document flag (#237) 2022-12-28 19:47:34 +05:30
Ashwini Mhatre 09362a2d98
Fix ansible lint issues (#235)
* Fix ansible-lint issues
2022-12-28 12:37:35 +05:30
Kate Case 24e53efe5e
Add documentation for IPv6 in ipsubnet filter (#212)
* fix typo. Add example for IPV6

* add unit tests for IPv6

Co-authored-by: serosset <serosset@cisco.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-12-05 16:00:19 -05:00
Kate Case f407bbdb92
Update regexes to work around Python 3.11 changes (#231) 2022-12-05 13:32:45 -05:00
Kate Case 57904bed64
Update changelog for 2.8.0 (#229) 2022-11-30 13:22:43 +00:00
Ashwini Mhatre e5591508fa
Fix Ansible lint FQCN error (#227)
* Fix set_fact ansible-lint

* Fix assert ansible-lint

* Fix find ansible-lint

* Fix debug ansible-lint

* Add FQCN
2022-11-29 19:28:12 +05:30
Ashwini Mhatre baba9ca7ea
Accept int input for ipaddr ipv4 and ipv6 filters (#224)
* Accept int input for ipaddr ipv4 and ipv6 filters

* Fix fragment

* Fix tests
2022-11-21 15:18:35 +05:30
Kate Case 4f38c362f7
pre-commit autoupdate (#225) 2022-11-18 20:27:53 +05:30
Kate Case aab6afe145
Fix changelog to point to the correct PR for PersistentConnectionBase (#221) 2022-11-04 14:13:52 -04:00
Federico Chiacchiaretta 0aee02eb97
Welcome to support for indentation with spaces in to_xml plugin (#192)
* Welcome to support for indentation with spaces in to_xml plugin

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Changelog fragment

* Unit tests for:

* Indent with spaces and explicit indent_width (4)
* Invalid indent

I also slightly modified VALID_DATA to produce output with indentation,
so existing test_valid_data and OUTPUT has been updated accordingly.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fix changelog section name to minor_changes

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-11-04 14:13:13 -04:00
Rohit Thakur fa08284cbb
Prepare Release 2.7.0 (#220)
* Prepare Release 2.7.0

Signed-off-by: Rohit Thakur <rohitthakur2590@outlook.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Signed-off-by: Rohit Thakur <rohitthakur2590@outlook.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-11-03 16:43:38 +00:00
Kate Case 6f0c83be4d
Add PersistentConnectionBase (#213) 2022-11-03 16:00:17 +00:00
Rohit Thakur 7de75fbd9e
add validated content plugin support (#201)
* add validated content plugin support

Signed-off-by: Rohit Thakur <rohitthakur2590@outlook.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Signed-off-by: Rohit Thakur <rohitthakur2590@outlook.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-11-03 14:43:04 +00:00
Felix Fontein b73ed61a47
Fix filter and test docs (#215)
* Fix filter and test documentation syntax errors.

Most cases were strings that were YAML-parsable as dictionaries due to colons,
sometimes of the form `str: str`, and sometimes of the form `str: list`.

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-14 13:02:22 -04:00