[master 11/20] edd: Fix one regexp so it matches against a real system /or/ test data.

vathpela installerbot-noreply at redhat.com
Wed Oct 28 15:55:33 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/5643d4bef67dcfd08319ac93ecbb5ffeccef7b0f


More information about the anaconda-patches mailing list