Mount logic breaks if /var/lib/kubelet is a symlink

Pass the correct kubelet root-dir on AWS
This commit is contained in:
Justin Santa Barbara
2015-05-25 08:15:26 -04:00
parent 9839253233
commit c4a2631593
5 changed files with 20 additions and 2 deletions

View File

@@ -69,7 +69,7 @@ func GetMountRefs(mounter Interface, mountPath string) ([]string, error) {
// Find all references to the device.
var refs []string
if deviceName == "" {
glog.Warningf("could not determine device for path: %s", mountPath)
glog.Warningf("could not determine device for path: %q", mountPath)
} else {
for i := range mps {
if mps[i].Device == deviceName && mps[i].Path != mountPath {