Skip to content

Commit 3dda10c

Browse files
authored
Merge pull request #16 from MatthiasWinzeler/license-keys
Create/update systems and license keys
2 parents 54cb667 + 7db5fd4 commit 3dda10c

File tree

5 files changed

+816
-1
lines changed

5 files changed

+816
-1
lines changed

plugins/module_utils/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
URL_SERVICE_INCIDENT = 'https://launchpad.support.sap.com/services/odata/incidentws'
77
URL_SERVICE_USER_ADMIN = 'https://launchpad.support.sap.com/services/odata/useradminsrv'
88
URL_SOFTWARE_DOWNLOAD = 'https://softwaredownloads.sap.com'
9+
URL_SYSTEMS_PROVISIONING = 'https://launchpad.support.sap.com/services/odata/i7p/odata/bkey'
910
# Maintainance Planner
1011
URL_MAINTAINANCE_PLANNER = 'https://maintenanceplanner.cfapps.eu10.hana.ondemand.com'
1112
URL_USERAPPS = 'https://userapps.support.sap.com/sap/support/mp/index.html'

plugins/module_utils/sap_api_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def _request(url, **kwargs):
3737
if 'allow_redirects' not in kwargs:
3838
kwargs['allow_redirects'] = True
3939

40-
method = 'POST' if kwargs.get('data') else 'GET'
40+
method = 'POST' if kwargs.get('data') or kwargs.get('json') else 'GET'
4141
res = https_session.request(method, url, **kwargs)
4242
res.raise_for_status()
4343

0 commit comments

Comments
 (0)