Skip quay repo creation if necessary info is missing

We try to be smart about when we attempt to create repos in quay. One
thing that was missing was checking if necessary info for the API
request is present. Skip attempting creating if not present.

Change-Id: I61e603c4d07280079e560215685bf09ebc0c4263
This commit is contained in:
Clark Boylan 2023-04-28 15:08:04 -07:00
parent 58f408cfac
commit 3db2bfe8d1

View File

@ -52,3 +52,6 @@
when:
- zj_image.registry == 'quay.io' or (container_registry_credentials[zj_image.registry].type is defined and container_registry_credentials[zj_image.registry].type == 'quay')
- container_registry_credentials[zj_image.registry].api_token is defined
- zj_image.namespace is defined
- zj_image.repo_shortname is defined
- zj_image.repo_description is defined