Don't use a 'wwn' kwarg for MDBiosRaidArrayDevice (#1557957) (awilliam)

This commit is contained in:
David Lehman 2018-03-20 15:49:04 -04:00
parent cbeb8f5490
commit 7be317fbf7
2 changed files with 37 additions and 1 deletions

View File

@ -0,0 +1,32 @@
From 9dfe3cfa695f788716655e51915dfb4fa9d8fcd6 Mon Sep 17 00:00:00 2001
From: Adam Williamson <awilliam@redhat.com>
Date: Mon, 19 Mar 2018 16:48:38 -0700
Subject: [PATCH] Don't use a 'wwn' kwarg for MDBiosRaidArrayDevice (#1557957)
MDBiosRaidArrayDevice's parent class doesn't take a 'wwn' kwarg,
so the populator for it shouldn't pass one.
For more details, see comment 15 on the bug.
Resolves: rhbz#1557957
Signed-off-by: Adam Williamson <awilliam@redhat.com>
---
blivet/populator/helpers/disk.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/blivet/populator/helpers/disk.py b/blivet/populator/helpers/disk.py
index e2757b12..6c03f698 100644
--- a/blivet/populator/helpers/disk.py
+++ b/blivet/populator/helpers/disk.py
@@ -172,6 +172,7 @@ class MDBiosRaidDevicePopulator(DiskDevicePopulator):
del kwargs["serial"]
del kwargs["vendor"]
del kwargs["bus"]
+ del kwargs["wwn"]
return kwargs
--
2.14.3

View File

@ -14,7 +14,7 @@ Version: 3.0.0
%global prerelease .b1
# prerelease, if defined, should be something like .a1, .b1, .b2.dev1, or .c2
Release: 0.5%{?prerelease}%{?dist}
Release: 0.6%{?prerelease}%{?dist}
Epoch: 1
License: LGPLv2+
Group: System Environment/Libraries
@ -24,6 +24,7 @@ Source0: http://github.com/storaged-project/blivet/archive/%{realname}-%{realver
Patch0: 0001-Dasd-is-a-valid-label-type-on-s390x.patch
Patch1: 0002-Do-not-try-to-update-potfile-during-make-all.patch
Patch2: 0003-Allow-device-specification-by-node-to-udev.get_devic.patch
Patch3: 0004-Don-t-use-a-wwn-kwarg-for-MDBiosRaidArrayDevice-1557.patch
# Versions of required components (done so we make sure the buildrequires
# match the requires versions of things).
@ -166,6 +167,9 @@ make PYTHON=%{__python3} DESTDIR=%{buildroot} install
%endif
%changelog
* Tue Mar 20 2018 David Lehman <dlehman@redhat.com> - 1:3.0.0-0.6.b1
- Don't use a 'wwn' kwarg for MDBiosRaidArrayDevice (#1557957) (awilliam)
* Sat Mar 17 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1:3.0.0-0.5.b1
- Update Python 2 dependency declarations to new packaging standards
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)