Skip to content

Commit d44dd30

Browse files
authored
CLOS-3468: show warning when url for mariadb is not supported
1 parent da14b8f commit d44dd30

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

repos/system_upgrade/cloudlinux/actors/clmysqlrepositorysetup/libraries/clmysqlrepositorysetup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,10 @@ def mariadb_process(self, repofile_name, repofile_data):
203203
# Replace only the first digit (source_major) after 'yum'
204204
url_parts[1] = url_parts[1].replace(str(source_major), str(target_major), 1)
205205
target_repo.baseurl = "yum".join(url_parts)
206+
else:
207+
# TODO: fix in https://cloudlinux.atlassian.net/browse/CLOS-3490
208+
api.current_logger().warning("Unsupported repository URL={}, skipping".format(target_repo.baseurl))
209+
return
206210

207211
if target_repo.enabled:
208212
api.current_logger().debug("Generating custom MariaDB repo: {}".format(target_repo.repoid))

0 commit comments

Comments
 (0)