Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion platform/os_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion store/json_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down