Revert "client: remove debugging lines"

This reverts commit 54ce4d1f7e.
This commit is contained in:
Nick Ethier
2019-08-08 14:52:52 -04:00
parent ad43dc830e
commit 4b814be995
2 changed files with 6 additions and 0 deletions

View File

@@ -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.

View File

@@ -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()