diff options
| author | Seth Vidal <skvidal@fedoraproject.org> | 2013-07-03 21:13:27 +0000 |
|---|---|---|
| committer | Seth Vidal <skvidal@fedoraproject.org> | 2013-07-03 21:14:28 +0000 |
| commit | 7c3b9d3574589f47afb2c19fdc034006d743086c (patch) | |
| tree | 1b74048fc70fa54d9f347c3aeaebbc009c6b4e75 /scripts | |
| parent | 0b3becc0c5396fd44c85a1faa0fdde63202c3adf (diff) | |
| download | ansible-7c3b9d3574589f47afb2c19fdc034006d743086c.tar.gz ansible-7c3b9d3574589f47afb2c19fdc034006d743086c.tar.xz ansible-7c3b9d3574589f47afb2c19fdc034006d743086c.zip | |
make loglist work with new log layout
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/loglist | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/loglist b/scripts/loglist index fd2e0905c..181b94006 100755 --- a/scripts/loglist +++ b/scripts/loglist @@ -17,12 +17,16 @@ fi ts=`date -d "$when" +%Y/%m/%d` if [ -z "$2" ]; then - find $logpath/$ts -mindepth 1 -maxdepth 1 -type d -print + for dir in $logpath/*/$ts; do + if [ -d $dir ]; then + echo $dir + fi + done exit; fi if [ -d $logpath/$ts/$2 ]; then - find $logpath/$ts/$2 -mindepth 1 -maxdepth 1 -type d -print + find $logpath/$2/$ts -mindepth 1 -maxdepth 1 -type d -print else echo "No such playbook log: $2" exit 1 |
