Commit Graph

185 Commits (main)

Author SHA1 Message Date
Ruchi Pakhle 256e787967
Added netaddr as a requirement in ansible.utils.ipaddr (#385)
* Added requirement on netaddr

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

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

* Added changelog

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

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

* minor changes

* Added requirement on netaddr to ansible.utils.ipaddr

* changes

* minor change

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

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

---------

Co-authored-by: Benoît Geeraerts <10222438+b-enoit-be@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-01-07 16:17:53 +05:30
Vinay M dda46ee3cf
Fixes tests that use AnsibleUndefined (#383)
* Fixes tests that use AnsibleUndefined

* add change log

* add same for other cases
2024-12-17 13:47:07 +05:30
Vinay M e213ad9a3c
Release 5.1.2 (#378)
* Release 5.1.2

* Update changelog.yaml
2024-09-30 10:04:39 +05:30
Vinay M d902c0f4f9
Fixes keep_keys filter to retain the entire node when a key match occurs, rather than just the leaf node values. (#377)
* Fix keep_keys not keeping the values if they are not a string

* added changelog

* remove inventory

* add tests

* added more test
2024-09-27 19:53:27 +05:30
Vinay M 8fcd7e54d0
release 5.1.1 (#371)
* release 5.1.1

* added support section

* remove small space

* changed link
2024-09-05 11:00:33 +00:00
Vinay M aa44958bd2
Fixes issue with keep_keys removing all keys when passed a dict. (#370)
* Fixes issue with keep_keys removing all keys when data is passed in as dict

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

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

* changed var name

* updated changelog

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-09-04 20:15:08 +05:30
Andrew Klychkov f678d3f4f3
README: Add Communication section with Forum information (#366)
* README: Add Communication section with Forum information

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

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

* Update README.md

* Update README.md

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Sagar Paul <sagpaul@redhat.com>
2024-08-19 10:27:39 +02:00
Ruchi Pakhle ddd977a591
Prepare release v5.1.0 (#363)
* Prepare release v5.1.0

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

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

* update

* [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-08-02 22:01:46 +05:30
Andrew J Roth 038bcb163e
fixed ipcut to support ipv4 (#358)
* fixed ipcut to support ipv4

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

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

* add changelog

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ruchi Pakhle <72685035+Ruchip16@users.noreply.github.com>
Co-authored-by: Ruchi Pakhle <ruchipakhle@gmail.com>
2024-08-02 16:09:34 +05:30
Emanuele Bernardi 540e0d8963
fix from_xml: return python dictionary (#361)
* removed the in between json conversion, now function returns python
dict, changed unit tests to check against the dict.

* remove the json import

* changelog added

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

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

* changed changelog to minor

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ruchi Pakhle <72685035+Ruchip16@users.noreply.github.com>
Co-authored-by: Nilashish Chakraborty <nilashishchakraborty8@gmail.com>
2024-07-25 22:20:32 +05:30
Mark0016 8cba2c3b9e
cli_parse: Fix finding relative template_path when used inside role/collection (#333)
* Fix finding relative template_path when provided

This allows parser.template_path to behave as expected inside roles or
collections when a path relative to the role/collection directory is
provided.

* add tests

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

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

* update tests

* add working tests

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

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

* updates

* minor changes

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

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

* Delete tests/integration/inventory

* add tests

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

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

* add netcommon dependency

* changes

* delete tests as CI is failing

* changes

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

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

---------

Co-authored-by: Mark Vasi <mark.vasi@embedit.com>
Co-authored-by: Ruchi Pakhle <ruchipakhle@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ruchi Pakhle <72685035+Ruchip16@users.noreply.github.com>
2024-07-25 22:07:08 +05:30
Vinay M db14f96453
Removed conditional check for deprecated ansible.netcommon.cli_parse (#362)
* Removed conditional check for deprecated ansible.netcommon.cli_parse

* remove warning when using netcommon parser
2024-07-25 20:04:11 +05:30
Vladimir Botka 6c1c3a4b81
remove_keys: Add complex integration tests. (#204)
* remove_keys: Add complex integration tests.

* Changelog

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

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

* fix lint

* fix more lint

* rewrite test

* fix lint

* fix lint again

* fix lint final

* fix lint warnings

* remove unnecessary file

* fix spacing

* added seprate file for vars

* fix intergration tests

---------

Co-authored-by: Vinay M <63404819+roverflow@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: roverflow <roverflow5@gmail.com>
2024-07-22 12:22:48 +05:30
Vladimir Botka 41339232c3
keep_keys: Add complex integration tests. (#203)
* keep_keys: Add complex integration tests.

* Changelog

* fix lint

* fix lint warnings

* fix final warning

* add seprate file for vars

---------

Co-authored-by: Vinay M <63404819+roverflow@users.noreply.github.com>
Co-authored-by: roverflow <roverflow5@gmail.com>
2024-07-22 12:10:55 +05:30
Giorgi Zeikidze 6425ea2299
add wildcard mask/hostmask to ipaddr filter doc page (#324)
* add wildcard mask/hostmask to ipaddr filter doc page

This might seem like an unnecessary addition but wildcard filter not being here has cost me couple of hours and a failed exam. I tried to follow convention as much as I could

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

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

* add changelog and add a note in readme

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

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

* add a note in readme check

* update readme

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

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

* correct the link

* correct the link

* correct the link

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

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

* Update changelogs/fragments/324.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>
Co-authored-by: Ruchi Pakhle <72685035+Ruchip16@users.noreply.github.com>
Co-authored-by: Nilashish Chakraborty <nilashishchakraborty8@gmail.com>
Co-authored-by: Ruchi Pakhle <ruchipakhle@gmail.com>
2024-07-19 20:13:24 +05:30
Vladimir Botka 3aeb82204f
replace_keys: Add complex integration tests. (#200)
* replace_keys: Add complex integration tests.

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

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

* Changelog

* Add fail_msg to first test.

* some changes

* adds correct integration tests :D

* delete the inventory file

* use fqcn format

* delete the unwanted file

* fix integration test

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

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

* update

---------

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-07-19 15:46:44 +05:30
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