Skip to content

Commit 0bab55c

Browse files
updated lockdir to /var/run/azure-vnet (#934)
1 parent 9b24dbd commit 0bab55c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

platform/os_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const (
2121
// CNIRuntimePath is the path where CNI state files are stored.
2222
CNIRuntimePath = "/var/run/"
2323
// CNILockPath is the path where CNI lock files are stored.
24-
CNILockPath = "/var/lock/azure-vnet/"
24+
CNILockPath = "/var/run/azure-vnet/"
2525
// CNSRuntimePath is the path where CNS state files are stored.
2626
CNSRuntimePath = "/var/run/"
2727
// CNI runtime path on a Kubernetes cluster

store/json_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ func TestLockFilePath(t *testing.T) {
231231
lockFileName := store.GetLockFileName()
232232

233233
if runtime.GOOS == "linux" {
234-
if lockFileName != "/var/lock/azure-vnet/" + testLockFileName + ".lock" {
234+
if lockFileName != "/var/run/azure-vnet/" + testLockFileName + ".lock" {
235235
t.Errorf("Not expected file lock name: %v", lockFileName)
236236
}
237237
} else {

0 commit comments

Comments
 (0)