We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c350adf commit a6d9115Copy full SHA for a6d9115
plugins/modules/software_center_download.py
@@ -136,10 +136,10 @@ def run_module():
136
137
# Search directory and subdirectories for filename without file extension
138
filename = query if query else download_filename
139
- pattern = dest + '/**/' + os.path.splitext(filename)[0] + '.*'
+ pattern = dest + '/**/' + os.path.splitext(filename)[0] + '*'
140
for file in glob.glob(pattern, recursive=True):
141
if os.path.exists(file):
142
- module.exit_json(skipped=True, msg="file {} already exists".format(filename))
+ module.exit_json(skipped=True, msg="file {} already exists".format(file))
143
144
# Initiate login with given credentials
145
sap_sso_login(username, password)
0 commit comments