diff --git a/platform/os_linux.go b/platform/os_linux.go index 0bbe78893a..0287d8f6a5 100644 --- a/platform/os_linux.go +++ b/platform/os_linux.go @@ -21,7 +21,7 @@ const ( // CNIRuntimePath is the path where CNI state files are stored. CNIRuntimePath = "/var/run/" // CNILockPath is the path where CNI lock files are stored. - CNILockPath = "/var/lock/azure-vnet/" + CNILockPath = "/var/run/azure-vnet/" // CNSRuntimePath is the path where CNS state files are stored. CNSRuntimePath = "/var/run/" // CNI runtime path on a Kubernetes cluster diff --git a/store/json_test.go b/store/json_test.go index aa6cfc36d3..bde3630d6d 100644 --- a/store/json_test.go +++ b/store/json_test.go @@ -231,7 +231,7 @@ func TestLockFilePath(t *testing.T) { lockFileName := store.GetLockFileName() if runtime.GOOS == "linux" { - if lockFileName != "/var/lock/azure-vnet/" + testLockFileName + ".lock" { + if lockFileName != "/var/run/azure-vnet/" + testLockFileName + ".lock" { t.Errorf("Not expected file lock name: %v", lockFileName) } } else {