代码拉取完成,页面将自动刷新
From f1aa249bc848634ccd1d6694b59321eac31b5f0e Mon Sep 17 00:00:00 2001
From: sunhai <sunhai10@huawei.com>
Date: Wed, 17 Apr 2024 00:20:07 +0800
Subject: [PATCH] fix empty UUIDs for NVMe namespaces
---
blivet/populator/helpers/disk.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blivet/populator/helpers/disk.py b/blivet/populator/helpers/disk.py
index 43c902a..b9ec843 100644
--- a/blivet/populator/helpers/disk.py
+++ b/blivet/populator/helpers/disk.py
@@ -287,7 +287,7 @@ class NVMeNamespaceDevicePopulator(DiskDevicePopulator):
kwargs["eui64"] = ninfo.eui64
kwargs["nguid"] = ninfo.nguid
- if ninfo.uuid and ninfo.uuid != uuid.UUID(int=0):
+ if ninfo.uuid and str(ninfo.uuid) != str(uuid.UUID(int=0)):
kwargs["uuid"] = ninfo.uuid
else:
kwargs["uuid"] = None
--
2.43.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。