Skip to content

Commit

Permalink
Merge pull request #191 from ceph/mergify/bp/quincy/pr-190
Browse files Browse the repository at this point in the history
validate: check for empty url (ceph_origin=custom) (backport #190)
  • Loading branch information
guits authored Feb 8, 2023
2 parents 99ccdf1 + 75171c6 commit f0e1345
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/scripts/vagrant_up.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -ex

if [[ "${CEPH_ANSIBLE_VAGRANT_BOX}" =~ "centos/stream" ]]; then
EL_VERSION="${CEPH_ANSIBLE_VAGRANT_BOX: -1}"
LATEST_IMAGE="$(curl -s https://cloud.centos.org/centos/${EL_VERSION}-stream/x86_64/images/CHECKSUM | sed -nE 's/^SHA256.*\((.*-([0-9]+).*vagrant-libvirt.box)\).*$/\1/p' | sort -u | tail -n1)"
Expand Down
2 changes: 1 addition & 1 deletion validate/preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
msg: "You must define 'ceph_custom_repositories' or 'custom_repo_url' when ceph_origin is 'custom'"
when:
- ceph_origin == 'custom'
- custom_repo_url is undefined
- (custom_repo_url is undefined or custom_repo_url == '')
- ceph_custom_repositories is undefined

- name: fail if baseurl is not defined for ceph_custom_repositories
Expand Down

0 comments on commit f0e1345

Please sign in to comment.