Skip to content

Commit f8f97a6

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Guard for worlddump in case LOGDIR is undefined"
2 parents 9504bb3 + 2696e5a commit f8f97a6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

stack.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,11 @@ function exit_trap {
631631

632632
if [[ $r -ne 0 ]]; then
633633
echo "Error on exit"
634-
./tools/worlddump.py -d $LOGDIR
634+
if [[ -z $LOGDIR ]]; then
635+
./tools/worlddump.py
636+
else
637+
./tools/worlddump.py -d $LOGDIR
638+
fi
635639
fi
636640

637641
exit $r

0 commit comments

Comments
 (0)