Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix setup download status code #623

Merged

Conversation

robin-checkmk
Copy link
Member

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

The logic to detect the correct agent download for Windows is broken, due to erroneous usage of the status_code return with the ansible.builtin.uri module.

What is the new behavior?

The modules to download web content on Windows (ansible.windows.win_get_url) and Linux (ansible.builtin.uri) use different return variables for their HTTP status codes.
This was confused in Win32NT-files, as both modules were used, but status_code is only valid for ansible.windows.win_get_url. This has been fixed.

Other information

@robin-checkmk robin-checkmk self-assigned this Jun 13, 2024
@robin-checkmk robin-checkmk mentioned this pull request Jun 13, 2024
7 tasks
@robin-checkmk robin-checkmk merged commit dca1703 into feature/agent-improve-idempotency Jun 14, 2024
2 checks passed
@robin-checkmk robin-checkmk deleted the bugfix/setup-download-status branch June 14, 2024 15:37
@github-actions github-actions bot locked and limited conversation to collaborators Jun 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant