summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2011-12-07 18:28:58 +0000
committerThierry Vignaud <tv@mageia.org>2011-12-07 18:28:58 +0000
commit302c326bf7f54441cb76278ef58992143bb6a4f7 (patch)
tree0880704621a61a65477d48f7c879a40d0517b3ba /perl-install/detect_devices.pm
parentdd705626e039997b9c0bc5de2cad8b1e0918baee (diff)
downloaddrakx-302c326bf7f54441cb76278ef58992143bb6a4f7.tar
drakx-302c326bf7f54441cb76278ef58992143bb6a4f7.tar.gz
drakx-302c326bf7f54441cb76278ef58992143bb6a4f7.tar.bz2
drakx-302c326bf7f54441cb76278ef58992143bb6a4f7.tar.xz
drakx-302c326bf7f54441cb76278ef58992143bb6a4f7.zip
(getSCSI) fix test, thus only overwritting model if found
broken since "(_get_hd_vendor) factorize code (needed for next commit)" on 2010-01-18
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r--perl-install/detect_devices.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index 3ad459054..fbe6aa27f 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -239,7 +239,7 @@ sub getSCSI() {
my ($vendor, $model) = ($get->('vendor'), $get->('model'));
my ($v, $m) = _get_hd_vendor($model);
- if ($v && $v) {
+ if ($v && $m) {
($vendor, $model) = ($v, $m);
}
push @l, { info => $vendor . ' ' . $model, host => $host, channel => $channel, id => $id, lun => $lun,