]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
testnode: fix umount condition match error 711/head
authorsunjunnan <sunjunnan@cmss.chinamobile.com>
Tue, 6 Dec 2022 03:21:18 +0000 (03:21 +0000)
committersunjunnan <sunjunnan@cmss.chinamobile.com>
Tue, 6 Dec 2022 03:21:18 +0000 (03:21 +0000)
Signed-off-by: Sun Junnan <sunjunnan_yewu@cmss.chinamobile.com>
Signed-off-by: Yang Honggang <yanghonggang_yewu@cmss.chinamobile.com>
roles/testnode/tasks/zap_disks.yml

index a56f41fd490ec44664c982d0e35215c639cdb490..560c3f775bee418baf69abc2cb2fb36609ad3d2f 100644 (file)
@@ -33,7 +33,7 @@
   with_items: "{{ ansible_mounts }}"
   when:
     - item.mount != '/' and
-      not item is match("/(boot|home|opt|root|srv|tmp|usr/local|var|.snapshots)")
+      not item.mount is match("/(boot|home|opt|root|srv|tmp|usr/local|var|.snapshots)")
 
 ## http://tracker.ceph.com/issues/20533
 ## Trusty version of wipefs lacks --force option