fixed: get-openstack-image condition to enable tls check based on provided certificate

What does this MR do and why?

This merge request aims to enhance the functionality of Sylva by allowing users to pull OS images from a trusted registry without the need to provide their certificate and using the following values:

oci_registry_insecure: false
oci_registry_extra_ca_certs: ""

Before this MR, when pulling OS images directly from registry.gitlab.com, an empty file is used as the trusted certificate for the python request package, resulting in an error.

This merge request improves the condition surrounding the component "./certs" of the Sylva-units "get-openstack-images".

The "./certs" component will be added if the following conditions are met:

  • oci_registry_insecure is set to false
  • oci_registry_extra_ca_certs is not an empty string.

Merge request reports

Loading