]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/workunits/cephadm/test_cephadm: fix argument
authorSage Weil <sage@newdream.net>
Fri, 29 Jan 2021 15:07:15 +0000 (09:07 -0600)
committerSage Weil <sage@newdream.net>
Fri, 29 Jan 2021 19:34:44 +0000 (13:34 -0600)
Signed-off-by: Sage Weil <sage@newdream.net>
qa/workunits/cephadm/test_cephadm.sh

index 62ae40a89050b57bacfa85788890417ad27b2d7c..9a28e8e0071a795762fa2dc3cfcff5f7f16e0980 100755 (executable)
@@ -367,8 +367,8 @@ cond="curl -k -s -H \"Authorization: Bearer $token\" \
 is_available "exporter_threads_active" "$cond" 3
 
 # check we deployed for all hosts
-$CEPHADM shell --fsid $FSID --config $CONFIG --keyring $KEYRING ceph orch ls cephadm-exporter --format json
-host_pattern=$($CEPHADM shell --fsid $FSID --config $CONFIG --keyring $KEYRING ceph orch ls cephadm-exporter --format json | jq -r '.[0].placement.host_pattern')
+$CEPHADM shell --fsid $FSID --config $CONFIG --keyring $KEYRING ceph orch ls --service-type cephadm-exporter --format json
+host_pattern=$($CEPHADM shell --fsid $FSID --config $CONFIG --keyring $KEYRING ceph orch ls --service-type cephadm-exporter --format json | jq -r '.[0].placement.host_pattern')
 [[ "$host_pattern" = "*" ]]
 
 ## run