From 2ff188da45b4d90fccec4ae242ac989426e6fbc1 Mon Sep 17 00:00:00 2001 From: catborise Date: Thu, 8 Sep 2022 08:15:54 +0300 Subject: [PATCH] fix add-cdrom error while creating --- vrtManager/create.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vrtManager/create.py b/vrtManager/create.py index e686efc..63a8f7a 100644 --- a/vrtManager/create.py +++ b/vrtManager/create.py @@ -249,7 +249,6 @@ class wvmCreate(wvmConnect): for volume in volumes: - disk_opts = "" if volume["cache_mode"] is not None and volume["cache_mode"] != "default": disk_opts += f"cache='{volume['cache_mode']}' " @@ -264,7 +263,7 @@ class wvmCreate(wvmConnect): stg_type = util.get_xml_path(stg.XMLDesc(0), "/pool/@type") if volume["device"] == "cdrom": - add_cdrom = None + add_cdrom = "None" if stg_type == "rbd": ceph_user, secret_uuid, ceph_hosts = get_rbd_storage_data(stg)