]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rbd: fix unbound variable in status() 67629/head
authorIlya Dryomov <idryomov@gmail.com>
Mon, 2 Mar 2026 11:07:48 +0000 (12:07 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 3 Mar 2026 10:39:59 +0000 (11:39 +0100)
It was missed in commit 5fe64fa806f3 ("qa: rbd_mirror.sh: change
parameters to cluster rather than daemon name").

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
qa/workunits/rbd/rbd_mirror_helpers.sh

index f5d7fe9262495a2b9f5f2600e8975b8e21f375d7..324b0877655aefd8ed1df4907f079740c7c195a0 100755 (executable)
@@ -509,7 +509,7 @@ all_admin_daemons()
 
 status()
 {
-    local cluster daemon image_pool image_ns image
+    local cluster image_pool image_ns image
 
     for cluster in ${CLUSTER1} ${CLUSTER2}
     do
@@ -584,7 +584,7 @@ status()
                 continue
             fi
 
-            echo "${daemon} rbd-mirror process in ps output:"
+            echo "${cluster} rbd-mirror process in ps output:"
             if ps auxww |
                 awk -v pid=${pid} 'NR == 1 {print} $2 == pid {print; exit 1}'
             then