1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/changelogs/fragments
Raul Gabriel Verdi a2677fd051
Expose unredirected_headers on maven_artifact (#4812)
* Expose unredirected_headers to module

In some cases, when the initial request returns a redirect and we want
to follow it to get the artifact, we might not want to include certain
headers in the redirection request. Specially headers like
Authorization and Cookies.
Or perhaps the redirect server returns a 400 because it included some
unexpected headers.
Fetch url already supports this feature, but it was being shadowed by
maven_artifact. In here we just expose it.

* Fix Linting errors

* Applied Comments

 - Specified version added
 - Changed description of unredirected_headers

* Check for ansible version

If it's 2.11 or older, we ignore unredirected_headers, otherwise we use
it, as fetch_url has them

* Applied comments

- Removed duplicated code in the call of fetch_url. Used kwargs instead
- Added check if unredirected_params is not empty and the fetch_url
  function does not support it
- Changed function that checks for ansible version
- Removed unused import

* Remove 2.11 breaking change

Made default only for ansible-core version 2.12 and above, but for keep
it empty for ansible-core version 2.11 and below.
Also include the following changes:
  - change doc to use C() on the function description
  - changed doc to use ansible-core instead of Ansible

* Changes in description for readability

* Add changelog fragment

* Change description changelog fragment
2022-07-24 12:09:58 +02:00
..
.keep Rename changelogs/fragments/.empty -> changelogs/fragments/.keep 2020-08-07 08:17:57 +02:00
4520-xfconf-deprecate-disable-facts.yml [6.0.0] xfconf - deprecate parameter disable_facts (#4520) 2022-05-17 19:26:06 +02:00
4654-alternatives-add-subcommands.yml Add subcommands parameter for module alternatives. (#4654) 2022-06-06 10:33:39 +02:00
4674-use-mh-raise.yaml Multiple modules using ModuleHelper (#4674) 2022-05-23 07:19:24 +02:00
4682-compatibility-virtualmedia-resource-location.yaml Update lenovoxcc module for compatibility with the virtualMedia resource location from Manager to System (#4682) 2022-05-18 07:24:27 +02:00
4700-code-changes.yml Add RHEL 9.0, FreeBSD 13.1, Ubuntu 22.04 and Fedora 36 to CI, fix bug in filesystem module (#4700) 2022-05-22 17:20:30 +02:00
4712-consul-bugfix.yaml consul: applied bugfix from issue (#4712) 2022-05-23 07:22:15 +02:00
4719-fix-keycloak-realm.yaml keycloak_realm: fix default groups and roles (#4241) (#4719) 2022-05-30 12:48:06 +02:00
4724-proxmox-qemu-extend.yaml Proxmox Inventory: added new statuses for qemu (#4723) 2022-06-04 09:15:02 +02:00
4726-zfs.yml Fix quoting bug in zfs. (#4726) 2022-05-28 21:38:30 +02:00
4733-redis-fail.yml fix invalid fail_json call (#4733) 2022-05-30 08:03:25 +02:00
4736-cmd-runner-skip-if-check.yml cmd_runner: added flag check_mode_skip to context (#4736) 2022-06-04 09:13:37 +02:00
4740-puppet-feature.yaml Add puppet confdir option (#4740) 2022-06-06 10:32:20 +02:00
4746-add-vpn-support-nmcli.yaml add support to create L2TP and PPTP VPN connection (#4746) 2022-06-06 21:16:27 +02:00
4752-ansible-galaxy-install-mh-updates.yml ansible_galaxy_install: minor improvements based on MH updates (#4752) 2022-06-04 09:14:17 +02:00
4755-mhexception-improvement.yml ModuleHelperException module utils - improved exception initialization (#4755) 2022-06-06 10:30:55 +02:00
4776-xfconf-cmd-runner.yaml xfconf module utils: providing a cmd_runner object (#4776) 2022-06-06 10:38:46 +02:00
4777-cmd-runner-deprecate-fmt.yaml cmd_runner: deprecate fmt as the name for the format class (#4777) 2022-06-05 18:37:59 +02:00
4780-passwordstore-wrapper-compat.yml passwordstore: Make compatible with shims (#4780) 2022-06-15 08:08:04 +02:00
4791-cmd-runner-callable.yaml cmd_runner: add __call__ method to invoke context (#4791) 2022-06-15 08:06:26 +02:00
4794-sudoers-validation.yml Sudoers validate (#4794) 2022-06-21 12:41:24 +02:00
4809-redhat_subscription-unsubscribe.yaml redhat_subscription: call 'remove' instead of 'unsubscribe' (#4809) 2022-06-14 07:26:38 +02:00
4810-alternatives-bug.yml alternatives: Fix bug with priority default (#4810) 2022-06-13 21:40:02 +02:00
4812-expose-unredirected-headers.yml Expose unredirected_headers on maven_artifact (#4812) 2022-07-24 12:09:58 +02:00
4813-fix-nmcli-convert-list.yaml nmcli: do not convert undefined lists to empty strings (#4813) 2022-06-13 11:56:10 +02:00
4814-sudoers-file-permissions.yml Ensure managed sudoers config files have 0440 permissions (#4814) 2022-06-12 08:17:56 +02:00
4816-proxmox-fix-extended-status.yaml Added conditional to only collect qmpstatus on qemu VMs (#4816) 2022-06-11 13:46:17 +02:00
4836-alternatives.yml Fix alternatives module (#4836) 2022-06-14 16:02:31 +02:00
4839-fix-VirtualMediaInsert-Supermicro.yml redfish_command: VirtualMediaInsert does not work with Supermicro (#4839) 2022-06-20 19:13:31 +02:00
4849-add-password-prompt-support-for-machinectl.yml added password prompt support for machinectl (#4849) 2022-07-08 23:11:14 +02:00
4852-sudoers-state-absent.yml sudoers: fix handling of state: absent (#4852) (#4853) 2022-06-19 15:34:24 +02:00
4886-fix-lxd-inventory-hostname.yml fix lxd connection plugin inventory_hostname (#4912) 2022-07-07 21:49:10 +02:00
4899-add-GetManagerInventory-for-redfish_info.yml Add GetFirmwareVersion command to redfish_info (#4900) 2022-06-30 20:35:35 +02:00
4901-fix-redfish-chassispower.yml Fix GetChassisPower when multiple chassis are present (#4902) 2022-06-30 20:36:01 +02:00
4903-cmdrunner-bugfix.yaml Fix command variable usage in CmdRunner (#4903) 2022-06-30 07:08:55 +02:00
4910-fix-for-agent-enabled.yml proxmox inventory: fix for agent enabled (#4910) 2022-07-12 11:03:13 +02:00
4911-dsv-honor-tld-option.yml Do not ignore tld option in DSV lookup plugin (#4911) 2022-07-04 20:25:34 +02:00
4916-opentelemetry-ini-options.yaml allow configuring opentelementry callback via config file (#4916) 2022-07-07 21:51:04 +02:00
4933-fix-rax-clb-nodes.yaml Fix syntax in rax_clb_nodes that breaks in Python3 (#4933) 2022-07-07 21:49:45 +02:00
4945-fix-get_vm-int-parse-handling.yaml proxmox module_utils: fix get_vm int parse handling (#4945) 2022-07-21 07:19:44 +02:00
4955-fix-path-detection-for-gopass.yaml Fix path detection for gopass (#4955) 2022-07-21 07:19:31 +02:00
4959-pacman-fix-url-packages-name.yaml Pacman: Fix name of URL packages (#4959) 2022-07-21 13:58:03 +02:00
4964-fix-keyring-info.yml Fix keyring_info when using keyring library (#4964) 2022-07-24 12:08:12 +02:00
4973-introduce-dig-lookup-argument.yaml Introduce dig lookup argument fail_on_error (#4973) 2022-07-24 12:08:47 +02:00
4975-xfconf-use-do-raise.yaml xfconf and xfconf_info: use do_raise (#4975) 2022-07-24 12:09:24 +02:00
psf-license.yml Add PSF-license.txt for plugins/module_utils/_mount.py (#4847) 2022-06-17 08:21:34 +02:00
simplified-bsd-license.yml Add simplified_bsd.txt license file (#4759) 2022-06-02 07:30:06 +02:00