Skip to content

Commit

Permalink
Merge pull request #16 from MatthiasWinzeler/license-keys
Browse files Browse the repository at this point in the history
Create/update systems and license keys
  • Loading branch information
rainerleber authored Nov 28, 2023
2 parents 54cb667 + 7db5fd4 commit 3dda10c
Show file tree
Hide file tree
Showing 5 changed files with 816 additions and 1 deletion.
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

0 comments on commit 3dda10c

Please sign in to comment.