Skip to content

Commit

Permalink
final fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
networkop committed Jul 6, 2021
1 parent 0ba458b commit 1850351
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clab/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ func (c *CLab) createNodeCfg(nodeName string, nodeDef *types.NodeDefinition, idx
Publish: c.Config.Topology.GetNodePublish(nodeName),
Sysctls: make(map[string]string),
Endpoints: make([]*types.Endpoint, 0),
Sandbox: c.Config.Topology.GetNodeSandbox(),
Kernel: c.Config.Topology.GetNodeKernel(),
Runtime: c.Config.Topology.GetNodeRuntime(),
Sandbox: c.Config.Topology.GetNodeSandbox(nodeName),
Kernel: c.Config.Topology.GetNodeKernel(nodeName),
Runtime: c.Config.Topology.GetNodeRuntime(nodeName),
}

log.Debugf("node config: %+v", nodeCfg)
Expand Down Expand Up @@ -346,7 +346,7 @@ func (c *CLab) VerifyImages(ctx context.Context) error {

for _, imageName := range node.GetImages() {
if imageName == "" {
log.Errorf("missing required image for node %q", node.Config().ShortName)
return fmt.Errorf("missing required image for node %q", node.Config().ShortName)
}
images[imageName] = node.GetRuntime().GetName()
}
Expand Down

0 comments on commit 1850351

Please sign in to comment.