fix: Fix volume tag judgement logic

fix volume tag judgement logic

Change-Id: I857c1932685a0b555b95b5a29fc6a65e937e00dc
This commit is contained in:
zhuyue 2021-10-29 15:50:05 +08:00
parent f7e4b18413
commit bd6a10f7c6

View File

@ -65,7 +65,8 @@ export const isOsDisk = (item) => {
item.bootable === 'true' &&
item.attachments &&
item.attachments.length !== 0 &&
item.attachments[0].device === '/dev/vda'
(item.attachments[0].device === '/dev/vda' ||
item.attachments[0].device === '/dev/sda')
) {
return true;
}