sap-linuxlab / community.sap_launchpad

Automation for SAP - Collection of Ansible Modules for various tasks using SAP Launchpad APIs
Apache License 2.0
8 stars 7 forks source link

Update sap_launchpad_software_center_download_runner.py #13

Closed thimslugga closed 5 months ago

thimslugga commented 11 months ago

added default argument value for deduplicate in search_software_file function and fixed formatting within function. This addresses issue with example for execution within python env.

>>> query_result = search_software_filename("HCMT_057_0-80003261.SAR")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: search_software_filename() missing 1 required positional argument: 'deduplicate'

https://github.com/sap-linuxlab/community.sap_launchpad/blob/main/docs/EXEC_EXAMPLES.md#execution-example-with-python-environment

sean-freeman commented 5 months ago

Instead of updating the underlying Python code that works as intended, updated the manual Python example that is meant only for dev/test purposes.