mirror of https://github.com/docker/docs.git
b2d import: split key/val assignment from switch
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
parent
33eab99e58
commit
8f66be1bc2
|
@ -23,7 +23,8 @@ func parseDiskInfo(r io.Reader) (*VirtualDisk, error) {
|
|||
if res == nil {
|
||||
continue
|
||||
}
|
||||
switch key, val := res[1], res[2]; key {
|
||||
key, val := res[1], res[2]
|
||||
switch key {
|
||||
case "SATA-1-0":
|
||||
disk.Path = val
|
||||
case "SATA-ImageUUID-1-0":
|
||||
|
|
Loading…
Reference in New Issue