[master 8/21] edd: Fix one regexp so it matches against a real system /or/ test data.
vathpela
installerbot-noreply at redhat.com
Wed Oct 28 15:53:27 UTC 2015
From: Peter Jones <pjones at redhat.com>
Woops.
Signed-off-by: Peter Jones <pjones at redhat.com>
---
blivet/devicelibs/edd.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blivet/devicelibs/edd.py b/blivet/devicelibs/edd.py
index 2adb1ba..0a83aef 100644
--- a/blivet/devicelibs/edd.py
+++ b/blivet/devicelibs/edd.py
@@ -375,7 +375,7 @@ def devname_from_ata_pci_dev(self):
continue
fn = components[0:6] + ['link%d' % (ata_port_idx,),]
- exp = [r'^']+fn+[r'dev%d\.(\d+)(\.(\d+)){0,1}$' % (ata_port_idx,)]
+ exp = [r'.*']+fn+[r'dev%d\.(\d+)(\.(\d+)){0,1}$' % (ata_port_idx,)]
exp = os.path.join(*exp)
expmatcher = re.compile(exp)
pmp_glob = fn + ['dev%d.*.*' % (ata_port_idx,)]
--
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/9af4e7046fab28d36b19b5cc870f2dec266fd664
More information about the anaconda-patches
mailing list