fix(baremetal): megactl driver fail to find device by key

This commit is contained in:
Qiu Jian
2021-03-26 03:18:05 +08:00
parent 7a6aa3116d
commit ffc67460b6
+1 -1
View File
@@ -626,7 +626,7 @@ func (a StorcliAdaptor) key() string {
}
func (a *StorcliAdaptor) isComplete() bool {
return a.Controller >= 0 && a.key() != ""
return a.Controller >= 0 && a.name != "" && a.sn != ""
}
func (a *StorcliAdaptor) parseLine(l string) {