[jenkins-ci PATCH 1/2] lcitool: Search /etc and /usr/local/etc separately

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Some operating systems (notably openSUSE) have the former but not
the latter, which results in the single call to find(1) we've used
so far to fail.

Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
I tried implementing my original suggestion and it turned out to
be much worse than what Jim and Fabiano proposed, so I've decided
to go for the latter (except fixed ;).

 guests/playbooks/update/tasks/paths.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guests/playbooks/update/tasks/paths.yml b/guests/playbooks/update/tasks/paths.yml
index 770680e..aada1f3 100644
--- a/guests/playbooks/update/tasks/paths.yml
+++ b/guests/playbooks/update/tasks/paths.yml
@@ -17,7 +17,7 @@
     - su
 
 - name: 'Look for files'
-  shell: 'find /etc /usr/local/etc -name {{ item }} 2>/dev/null'
+  shell: '(find /usr/local/etc -name {{ item }}; find /etc -name {{ item }}) 2>/dev/null'
   register: find
   with_items:
     - sudoers
-- 
2.23.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux