Skip to content

Commit

Permalink
Merge pull request Azure#2 from jofrance/alpha
Browse files Browse the repository at this point in the history
Fixing code for data disk detection on RedHat
  • Loading branch information
jofrance authored Aug 17, 2020
2 parents bd7d445 + 07e7ace commit ad946b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fi
get_data_disk ()
{
echo "`date` Getting data disk" >> ${logpath}/${logfile} 2>&1
export data_disk=`ls -la /dev/disk/azure/scsi1/lun0 | awk -F. '{print "/dev"$7}'` >> ${logpath}/${logfile} 2>&1
export data_disk=`ls -la /dev/disk/azure/scsi1/lun0 | awk -F/ '{print "/dev/"$9}'` >> ${logpath}/${logfile} 2>&1
if [ -z ${data_disk} ]
then
echo "`date` OS disk attached as data disk was not found, cannot continue" >> ${logpath}/${logfile} 2>&1
Expand Down

0 comments on commit ad946b2

Please sign in to comment.