Skip to content

Commit 4dd8602

Browse files
authored
Merge branch 'main' into align-file-headers
2 parents 4a8245e + 3dda10c commit 4dd8602

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
@@ -8,6 +8,7 @@
88
URL_SOFTWARE_DOWNLOAD = 'https://softwaredownloads.sap.com'
99
# Maintenance Planner
1010
URL_MAINTENANCE_PLANNER = 'https://maintenanceplanner.cfapps.eu10.hana.ondemand.com'
11+
URL_SYSTEMS_PROVISIONING = 'https://launchpad.support.sap.com/services/odata/i7p/odata/bkey'
1112
URL_USERAPPS = 'https://userapps.support.sap.com/sap/support/mp/index.html'
1213
URL_USERAPP_MP_SERVICE = 'https://userapps.support.sap.com/sap/support/mnp/services'
1314
URL_LEGACY_MP_API = 'https://tech.support.sap.com/sap/support/mnp/services'

plugins/module_utils/sap_api_common.py

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

37-
method = 'POST' if kwargs.get('data') else 'GET'
37+
method = 'POST' if kwargs.get('data') or kwargs.get('json') else 'GET'
3838
res = https_session.request(method, url, **kwargs)
3939
res.raise_for_status()
4040

0 commit comments

Comments
 (0)