summaryrefslogtreecommitdiffstats
path: root/scripts/show-changed
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/show-changed')
-rwxr-xr-xscripts/show-changed10
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/show-changed b/scripts/show-changed
index e073e2f7c..5e64c5111 100755
--- a/scripts/show-changed
+++ b/scripts/show-changed
@@ -22,21 +22,25 @@ do
dir=`dirname $logpath`
runtime=`basename $dir`
echo -n "$runtime - $hostname "
- echo $line | cut -d: -f2-| cut -f3-4
+ pre=`echo $line | cut -d: -f2-| cut -f3-4`
json=`echo $line | cut -d: -f2- |cut -f5-`
echo $json| python -m json.tool 2>/dev/null >&2
if [ $? != 0 ]; then
echo "Error parsing json"
else
if [ "$verbose" == 'yes' ]; then
+ echo $pre
echo $json| python -m json.tool
else
+ echo -n $pre
for term in task_userid cmd task_args task_module; do
- echo $json| /srv/web/infra/ansible/scripts/keyreturn $term 2>/dev/null >&2
+ res=`echo $json| /srv/web/infra/ansible/scripts/keyreturn $term 2>/dev/null`
if [ $? == 0 ]; then
- echo $json| /srv/web/infra/ansible/scripts/keyreturn $term
+ echo -n " $res"
+ #$json| /srv/web/infra/ansible/scripts/keyreturn $term
fi
done
+ echo ''
fi
fi
done