diff --git a/scripts/fc_wwpn_id b/scripts/fc_wwpn_id index c8d01892..b05c5e85 100644 --- a/scripts/fc_wwpn_id +++ b/scripts/fc_wwpn_id @@ -38,7 +38,9 @@ while [ -n "$d" ] ; do esac done -echo "FC_TARGET_LUN=$target_lun" +if [ -n "$rport_wwpn" ] || [ -n "$host_wwpn" ] ; then + echo "FC_TARGET_LUN=$target_lun" +fi if [ -n "$rport_wwpn" ] ; then echo "FC_TARGET_WWPN=$rport_wwpn"