Skip to content

Commit d8b6546

Browse files
committed
Moved libnetwork remote plugin directory creation to CNM package
1 parent d5f4804 commit d8b6546

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cnm/plugin.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package cnm
66
import (
77
"net/http"
88
"os"
9+
"path"
910

1011
"github.com/Azure/azure-container-networking/common"
1112
"github.com/Azure/azure-container-networking/log"
@@ -43,7 +44,7 @@ func (plugin *Plugin) Initialize(config *common.PluginConfig) error {
4344
// Create the listener.
4445
var localAddr string
4546
if plugin.Name != "test" {
46-
localAddr = config.Name + plugin.Name
47+
localAddr = path.Join(pluginPath, config.Name+plugin.Name)
4748
}
4849

4950
listener, err := common.NewListener("unix", localAddr)

0 commit comments

Comments
 (0)