]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
scripts: take into account custom cluster names in collect logs playbook
authorAndrew Schoen <aschoen@redhat.com>
Thu, 8 Mar 2018 21:44:05 +0000 (15:44 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Thu, 8 Mar 2018 21:44:05 +0000 (15:44 -0600)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
scripts/build_utils.sh

index a5436d9f6c4df06ea397922ddc59617e67cb23cd..af0f94b7af0fe3bbda233919dc96980fffc475f9 100644 (file)
@@ -684,7 +684,7 @@ write_collect_logs_playbook() {
   become: yes
   tasks:
     - name: find ceph logs
-      command: find /var/log/ceph -name "ceph*.log"
+      command: find /var/log/ceph -name "{{ cluster|default('ceph') }}*.log"
       register: ceph_logs
 
     - name: collect ceph logs