Skip to content

Commit

Permalink
fix default credentials new location
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Jun 29, 2021
1 parent af5c892 commit ffb5ca5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/srl-labs/containerlab/clab"
"github.com/srl-labs/containerlab/clab/config"
"github.com/srl-labs/containerlab/clab/config/transport"
"github.com/srl-labs/containerlab/nodes"
)

// Only print config locally, dont send to the node
Expand Down Expand Up @@ -71,8 +72,8 @@ var configCmd = &cobra.Command{
tx, err = transport.NewSSHTransport(
cs.TargetNode,
transport.WithUserNamePassword(
clab.DefaultCredentials[cs.TargetNode.Kind][0],
clab.DefaultCredentials[cs.TargetNode.Kind][1]),
nodes.DefaultCredentials[cs.TargetNode.Kind][0],
nodes.DefaultCredentials[cs.TargetNode.Kind][1]),
transport.HostKeyCallback(),
)
if err != nil {
Expand Down

0 comments on commit ffb5ca5

Please sign in to comment.