9 Star 0 Fork 24

src-openEuler/python-blivet

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
bugfix-fix-empty-UUIDs-for-NVMe-namespaces.patch 896 Bytes
一键复制 编辑 原始数据 按行查看 历史
sun_hai 提交于 2024-05-10 01:52 +08:00 . fix empty UUIDs for NVMe namespaces
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/python-blivet.git
git@gitee.com:src-openeuler/python-blivet.git
src-openeuler
python-blivet
python-blivet
master

搜索帮助