Commit d7c02288 authored by Divyen Patel's avatar Divyen Patel

fixing diskIsAttached func

parent 78b60e2c
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment