Merge pull request #10506 from swordqiu/automated-cherry-pick-of-#10505-upstream-release-3.7

Automated cherry pick of #10505: fix(baremetal): megactl driver fail to find device by key
This commit is contained in:
Zexi Li
2021-03-26 15:16:45 +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) {