Skip to content

Commit

Permalink
Merge pull request #478 from srl-labs/fix-crpd-exec
Browse files Browse the repository at this point in the history
fixed crpd exec
  • Loading branch information
hellt committed Jun 26, 2021
2 parents ae75ae1 + 8adc2ea commit b4db52d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nodes/crpd/crpd.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,15 @@ func (s *crpd) Deploy(ctx context.Context, r runtime.ContainerRuntime) error {

func (s *crpd) PostDeploy(ctx context.Context, r runtime.ContainerRuntime, ns map[string]nodes.Node) error {
log.Debugf("Running postdeploy actions for CRPD %q node", s.cfg.ShortName)
_, stderr, err := r.Exec(ctx, s.cfg.ContainerID, []string{"service ssh restart"})
_, stderr, err := r.Exec(ctx, s.cfg.ContainerID, []string{"service", "ssh", "restart"})
if err != nil {
return err
}

if len(stderr) > 0 {
return fmt.Errorf("crpd post-deploy failed: %s", string(stderr))
}

return err
}

Expand Down

0 comments on commit b4db52d

Please sign in to comment.