]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
script/ceph-debug-docker: s/x86_64/$(arch)/
authorKefu Chai <kchai@redhat.com>
Sat, 5 Jun 2021 04:19:41 +0000 (12:19 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 5 Jun 2021 04:22:00 +0000 (12:22 +0800)
try to avoid hardwiring to a certain architecture if possible.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/script/ceph-debug-docker.sh

index cd99519fbacb6c0f74d6222f21137c58c2668ae8..f73c23e71ff803a70470bc75011fed2236c7b0c1 100755 (executable)
@@ -85,7 +85,7 @@ function main {
     T=$(mktemp -d)
     pushd "$T"
     distro="${env/://}"
-    api_url="https://shaman.ceph.com/api/search/?status=ready&project=ceph&flavor=${FLAVOR}&distros=${distro}/x86_64&ref=${branch}&sha1=${sha}"
+    api_url="https://shaman.ceph.com/api/search/?status=ready&project=ceph&flavor=${FLAVOR}&distros=${distro}/$(arch)&ref=${branch}&sha1=${sha}"
     repo_url="$(wget -O - "$api_url" | jq -r '.[0].chacra_url')repo"
     # validate url:
     wget -O /dev/null "$repo_url"