fix(master : nicsensor)修正 parse_nic_slot无法识别两位数槽位号的问题
This commit is contained in:
parent
d8f8aa9cb0
commit
6fce071426
@ -252,10 +252,10 @@ parse_nic_slot(){
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
if [ $nic_type = "ocp" ];then
|
if [ $nic_type = "ocp" ];then
|
||||||
slot_number=$(echo $nic_slot | cut -c 4)
|
slot_number=$(echo $nic_slot | cut -b 4-)
|
||||||
else
|
else
|
||||||
if [ $fullname -eq 1 ];then
|
if [ $fullname -eq 1 ];then
|
||||||
slot_number=$(echo $nic_slot | cut -c 5)
|
slot_number=$(echo $nic_slot | cut -b 5-)
|
||||||
else
|
else
|
||||||
slot_number=$nic_slot
|
slot_number=$nic_slot
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user