-
Notifications
You must be signed in to change notification settings - Fork 10
collection: Refactor all Ansible Modules #51
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
berndfinger
reviewed
Sep 10, 2025
berndfinger
reviewed
Sep 10, 2025
rhmk
approved these changes
Sep 19, 2025
Member
rhmk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
berndfinger
approved these changes
Sep 23, 2025
Member
berndfinger
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
1. Architectural Refactoring
software_center,maintenance_planner,systems) with a clean separation of concerns (api.py,main.py).ApiClientclass now centralizes session management, retry logic, and common headers, providing a cleaner interface for all API communication.2. Bug Fixes & Stability Enhancements
400and403errors by adapting to specific API requirements for OData filters, request headers (X-Requested-With), and request payloads.ProdverandVersionkeys for product version IDs.license_keysmodule now fails with a clear error when multiple systems with the same SID are found, preventing ambiguous updates.software_center_downloadto correctly handle wildcard searches.validate_checksumlogic to properly handle alternative files.3. Documentation Overhaul
.mdfiles) has been updated with a new "Execution Flow" section to clearly explain the module's logic.Simple test play
Test results
First download
Second download
Third download after emptying SAPCAR file
echo "" > SAPCAR_1115-70006178.EXE