Commit Graph

334 Commits (dda46ee3cf32acb0b63f23451c56ba09f03eb456)

Author SHA1 Message Date
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
pre-commit-ci[bot] 46a3d71fb8
[pre-commit.ci] pre-commit autoupdate (#380)
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v5.0.0)
- [github.com/psf/black: 24.8.0 → 24.10.0](https://github.com/psf/black/compare/24.8.0...24.10.0)

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-10-09 15:20:57 +05:30
Kate Case f9e2d97d2e
Fix my name in module attribution (#381) 2024-10-08 11:52:24 -04:00
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
Andrew Klychkov c4ace98702
Docs: remove IRC (#369)
Co-authored-by: Ruchi Pakhle <72685035+Ruchip16@users.noreply.github.com>
2024-09-05 16:43:32 +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
Ruchi Pakhle e594aa6090
fix the pylint used-before-assignment error (#367)
* fix the pylint used-before-assignment error

* fix integration tests

* [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-20 20:19:57 +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
pre-commit-ci[bot] 905e26efb8
[pre-commit.ci] pre-commit autoupdate (#365)
updates:
- [github.com/psf/black: 24.4.2 → 24.8.0](https://github.com/psf/black/compare/24.4.2...24.8.0)
- [github.com/pycqa/flake8: 7.1.0 → 7.1.1](https://github.com/pycqa/flake8/compare/7.1.0...7.1.1)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-06 12:49:36 +05:30
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
Ruchi Pakhle 1df7af5ab2
fix the variable collision issue in downstream tests (#364)
* fix the variable collision issue

* make output format in such a way that it returns a dict

* changes

* changes

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

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

* revert back changes

* changes

* changes

* fix the error

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

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

* add dict construct

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-01 23:44:14 +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
pre-commit-ci[bot] 827ce48ff5
[pre-commit.ci] pre-commit autoupdate (#356)
updates:
- [github.com/pycqa/flake8: 7.0.0 → 7.1.0](https://github.com/pycqa/flake8/compare/7.0.0...7.1.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-07-03 19:04:48 +05:30
pre-commit-ci[bot] 6e9dd77b43
[pre-commit.ci] pre-commit autoupdate (#327)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v4.6.0)
- [github.com/psf/black: 23.12.1 → 24.4.2](https://github.com/psf/black/compare/23.12.1...24.4.2)

* [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: Nilashish Chakraborty <nilashishchakraborty8@gmail.com>
2024-06-11 10:02:49 +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 6b0a179bbe
update changelog.rst in Readme (#351) 2024-05-10 20:55:18 +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
Nilashish Chakraborty 9f790615c6
Update test-requirements.txt 2024-04-15 17:38:00 +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 b0627b8d16
Update CHANGELOG.rst 2024-03-28 21:04:52 +05:30
Nilashish Chakraborty 70442f5b85
Fix CHANGELOG.rst (#345)
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
2024-03-28 21:00:21 +05:30
Nilashish Chakraborty 8c852d0272
do not run linters through tox (#344)
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
2024-03-28 19:29:13 +05:30
Nilashish Chakraborty bd78088e9d
remove unnecessary files (#343)
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
2024-03-28 19:10:20 +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 754bf36055
Undo changes done by https://github.com/ansible-collections/ansible.utils/pull/172 (#335)
* Undo changes done by https://github.com/ansible-collections/ansible.utils/pull/172

* Update bugfix_178.yaml

* Delete changelogs/fragments/bugfix_178.yaml

---------

Co-authored-by: Ashwini Mhatre <amhatre@amhatre-thinkpadt14sgen2i.pnq.csb>
2024-03-01 11:36:54 +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
Sagar Paul 786fa9891d
[GHA] Update reference for GitHub actions (#318)
* Update reference for GitHub actions

* tox lint file update

* Make names consistent

* ack - check_label

* check source

* fix utils ref

* update lint workflow

* test

* test again

* fix assert statement

* update workflows

* test change

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

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

* add back token refresh

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-30 19:25:26 +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
pre-commit-ci[bot] 35f20ca9c7
[pre-commit.ci] pre-commit autoupdate (#321)
updates:
- [github.com/pre-commit/mirrors-prettier: v4.0.0-alpha.4 → v4.0.0-alpha.8](https://github.com/pre-commit/mirrors-prettier/compare/v4.0.0-alpha.4...v4.0.0-alpha.8)
- [github.com/PyCQA/isort: 5.13.0 → 5.13.2](https://github.com/PyCQA/isort/compare/5.13.0...5.13.2)
- [github.com/psf/black: 23.11.0 → 23.12.1](https://github.com/psf/black/compare/23.11.0...23.12.1)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-02 17:14:45 +05:30
pre-commit-ci[bot] 8168a2f343
[pre-commit.ci] pre-commit autoupdate (#319)
updates:
- [github.com/pre-commit/mirrors-prettier: v4.0.0-alpha.3 → v4.0.0-alpha.4](https://github.com/pre-commit/mirrors-prettier/compare/v4.0.0-alpha.3...v4.0.0-alpha.4)
- [github.com/PyCQA/isort: 5.12.0 → 5.13.0](https://github.com/PyCQA/isort/compare/5.12.0...5.13.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-12-13 18:38:13 +05:30
pre-commit-ci[bot] c3146b5b36
[pre-commit.ci] pre-commit autoupdate (#317)
updates:
- [github.com/pre-commit/mirrors-prettier: v3.1.0 → v4.0.0-alpha.3](https://github.com/pre-commit/mirrors-prettier/compare/v3.1.0...v4.0.0-alpha.3)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-12-06 18:47:23 +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