Wrong arguments for die() call

die() needs $LINENO as its first arg

Change-Id: I7c8043dbeb55ec9ed566e7055a02c0a2993d0a8a
This commit is contained in:
Lucas Alvares Gomes 2013-09-06 18:14:51 +01:00
parent b567fc1f6b
commit c33d1f986e

View File

@ -291,7 +291,7 @@ function extract_and_upload_k_and_r_from_image() {
out=$($BM_IMAGE_BUILD_DIR/bin/disk-image-get-kernel \
-x -d $TOP_DIR/files -o bm-deploy -i $file)
if [ $? -ne 0 ]; then
die "Failed to get kernel and ramdisk from $file"
die $LINENO "Failed to get kernel and ramdisk from $file"
fi
XTRACE=$(set +o | grep xtrace)
set +o xtrace
@ -439,9 +439,9 @@ function add_baremetal_node() {
"$BM_FLAVOR_ROOT_DISK" \
"$mac_1" \
| grep ' id ' | get_field 2 )
[ $? -eq 0 ] || [ "$id" ] || die "Error adding baremetal node"
[ $? -eq 0 ] || [ "$id" ] || die $LINENO "Error adding baremetal node"
id2=$(nova baremetal-interface-add "$id" "$mac_2" )
[ $? -eq 0 ] || [ "$id2" ] || die "Error adding interface to barmetal node $id"
[ $? -eq 0 ] || [ "$id2" ] || die $LINENO "Error adding interface to barmetal node $id"
}