From 7a7e0c8b9f7184e43ff6cebf7370976beb409bf2 Mon Sep 17 00:00:00 2001
From: sun_hai_10 <sunhai10@huawei.com>
Date: Wed, 27 Mar 2024 15:11:51 +0800
Subject: [PATCH] fix plugin warning

---
 src/python/gi/overrides/BlockDev.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/python/gi/overrides/BlockDev.py b/src/python/gi/overrides/BlockDev.py
index e2cb695..dd62445 100644
--- a/src/python/gi/overrides/BlockDev.py
+++ b/src/python/gi/overrides/BlockDev.py
@@ -1122,9 +1122,7 @@ __all__.append("nvme_connect")
 def plugin_specs_from_names(plugin_names):
     ret = []
     for name in plugin_names:
-        plugin = BlockDev.PluginSpec()
-        plugin.name = bd_plugins[name.lower()]
-        plugin.so_name = None
+        plugin = BlockDev.PluginSpec(name=bd_plugins[name.lower()], so_name=None)
         ret.append(plugin)
 
     return ret
-- 

