mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
Revert "client: remove debugging lines"
This reverts commit 54ce4d1f7e.
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/davecgh/go-spew/spew"
|
||||
multierror "github.com/hashicorp/go-multierror"
|
||||
"github.com/hashicorp/nomad/client/allocrunner/interfaces"
|
||||
clientconfig "github.com/hashicorp/nomad/client/config"
|
||||
@@ -112,6 +113,8 @@ func (ar *allocRunner) initRunnerHooks(config *clientconfig.Config) error {
|
||||
|
||||
// create network configurator
|
||||
nc := newNetworkConfigurator(ar.Alloc(), config)
|
||||
spew.Dump(config.BridgeNetworkName)
|
||||
spew.Dump(config.BridgeNetworkAllocSubnet)
|
||||
|
||||
// Create the alloc directory hook. This is run first to ensure the
|
||||
// directory path exists for other hooks.
|
||||
|
||||
@@ -7,6 +7,7 @@ import (
|
||||
"path/filepath"
|
||||
|
||||
"github.com/containernetworking/cni/libcni"
|
||||
"github.com/davecgh/go-spew/spew"
|
||||
"github.com/hashicorp/nomad/nomad/structs"
|
||||
"github.com/hashicorp/nomad/plugins/drivers"
|
||||
)
|
||||
@@ -74,6 +75,8 @@ func (b *bridgeNetworkConfigurator) Setup(alloc *structs.Allocation, spec *drive
|
||||
return err
|
||||
}
|
||||
|
||||
spew.Dump(netconf)
|
||||
|
||||
result, err := b.cniConfig.AddNetworkList(b.ctx, netconf, b.runtimeConf(alloc, spec))
|
||||
if result != nil {
|
||||
result.Print()
|
||||
|
||||
Reference in New Issue
Block a user