From: Kefu Chai Date: Sat, 5 Jun 2021 04:19:41 +0000 (+0800) Subject: script/ceph-debug-docker: s/x86_64/$(arch)/ X-Git-Tag: v17.1.0~1731^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=854df814d91a3555b37889a5d441fcff7e699b23;p=ceph-ci.git script/ceph-debug-docker: s/x86_64/$(arch)/ try to avoid hardwiring to a certain architecture if possible. Signed-off-by: Kefu Chai --- diff --git a/src/script/ceph-debug-docker.sh b/src/script/ceph-debug-docker.sh index cd99519fbac..f73c23e71ff 100755 --- a/src/script/ceph-debug-docker.sh +++ b/src/script/ceph-debug-docker.sh @@ -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"