mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
fixing diskIsAttached func
This commit is contained in:
parent
78b60e2c1c
commit
d7c02288fc
@ -719,11 +719,10 @@ func diskIsAttached(volPath string, nodeName string) (bool, error) {
|
|||||||
nodeName)
|
nodeName)
|
||||||
return false, err
|
return false, err
|
||||||
}
|
}
|
||||||
if device != nil {
|
if device == nil {
|
||||||
framework.Logf("diskIsAttached found the disk %q attached on node %q",
|
return false, nil
|
||||||
volPath,
|
|
||||||
nodeName)
|
|
||||||
}
|
}
|
||||||
|
framework.Logf("diskIsAttached found the disk %q attached on node %q", volPath, nodeName)
|
||||||
return true, nil
|
return true, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user