Merge pull request #10505 from swordqiu/hotfix/qj-megactl-fail-find-device

fix(baremetal): megactl driver fail to find device by key
This commit is contained in:
Zexi Li
2021-03-26 15:09:25 +08:00
committed by GitHub
+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) {