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