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

Create/update systems and license keys #16

Merged
merged 12 commits into from
Nov 28, 2023
1 change: 1 addition & 0 deletions plugins/module_utils/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
URL_SERVICE_INCIDENT = 'https://launchpad.support.sap.com/services/odata/incidentws'
URL_SERVICE_USER_ADMIN = 'https://launchpad.support.sap.com/services/odata/useradminsrv'
URL_SOFTWARE_DOWNLOAD = 'https://softwaredownloads.sap.com'
URL_SYSTEMS_PROVISIONING = 'https://launchpad.support.sap.com/services/odata/i7p/odata/bkey'
# Maintainance Planner
URL_MAINTAINANCE_PLANNER = 'https://maintenanceplanner.cfapps.eu10.hana.ondemand.com'
URL_USERAPPS = 'https://userapps.support.sap.com/sap/support/mp/index.html'
Expand Down
2 changes: 1 addition & 1 deletion plugins/module_utils/sap_api_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def _request(url, **kwargs):
if 'allow_redirects' not in kwargs:
kwargs['allow_redirects'] = True

method = 'POST' if kwargs.get('data') else 'GET'
method = 'POST' if kwargs.get('data') or kwargs.get('json') else 'GET'
res = https_session.request(method, url, **kwargs)
res.raise_for_status()

Expand Down
Loading