Accepting request 569367 from home:lee_duncan:branches:devel:languages:python

- Fix incorrect naming for XEN (bsc#1076455), adding patch:
  * correct-name-for-xen-pvscsi.patch

OBS-URL: https://build.opensuse.org/request/show/569367
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rtslib-fb?expand=0&rev=29
This commit is contained in:
Lee Duncan 2018-01-24 19:00:54 +00:00 committed by Git OBS Bridge
parent 784245ce5a
commit bc16ce6754
3 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,39 @@
From: Olaf Hering <olaf@aepfle.de>
Date: Wed, 17 Jan 2018 12:27:48 +0100
Subject: Correct name for Xen pvscsi
Git-commit: 5a5670608b7abab061a59d65568e8ab0a53b6ef0
References: bsc#1076455
The name used in released products is xen-pvscsi, not xen_pvscsi.
Fixes: 2bcc4cd ("Add support for xen-scsiback")
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Lee Duncan <lduncan@suse.com>
---
rtslib/fabric.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rtslib/fabric.py b/rtslib/fabric.py
index 4e9a1ee4073a..b529f14815cc 100644
--- a/rtslib/fabric.py
+++ b/rtslib/fabric.py
@@ -440,7 +440,7 @@ class VhostFabricModule(_BaseFabricModule):
class XenPvScsiFabricModule(_BaseFabricModule):
def __init__(self):
- super(XenPvScsiFabricModule, self).__init__('xen_pvscsi')
+ super(XenPvScsiFabricModule, self).__init__('xen-pvscsi')
self._path = "%s/%s" % (self.configfs_dir, 'xen-pvscsi')
self.features = ("nexus", "tpgts")
self.wwn_types = ('naa',)
@@ -469,7 +469,7 @@ fabric_modules = {
"tcm_fc": FCoEFabricModule,
# "usb_gadget": USBGadgetFabricModule, # very rare, don't show
"vhost": VhostFabricModule,
- "xen_pvscsi": XenPvScsiFabricModule,
+ "xen-pvscsi": XenPvScsiFabricModule,
"ibmvscsis": IbmvscsisFabricModule,
}

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jan 24 18:43:43 UTC 2018 - lduncan@suse.com
- Fix incorrect naming for XEN (bsc#1076455), adding patch:
* correct-name-for-xen-pvscsi.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jan 9 14:37:15 UTC 2018 - tchvatal@suse.com Tue Jan 9 14:37:15 UTC 2018 - tchvatal@suse.com

View File

@ -29,6 +29,7 @@ License: Apache-2.0
Group: Development/Languages/Python Group: Development/Languages/Python
Url: http://github.com/open-iscsi/rtslib-fb.git Url: http://github.com/open-iscsi/rtslib-fb.git
Source: %{oname}-%{realver}.tar.xz Source: %{oname}-%{realver}.tar.xz
Patch1: correct-name-for-xen-pvscsi.patch
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module pyudev} BuildRequires: %{python_module pyudev}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
@ -49,6 +50,7 @@ the Apache 2.0 license. Contributions are welcome
%prep %prep
%setup -q -n %{oname}-%{realver} %setup -q -n %{oname}-%{realver}
%patch1 -p1
%build %build
%python_build %python_build