Skip to content

Commit

Permalink
feat(torch): ref error msg
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Ramon Mañes <[email protected]>
  • Loading branch information
tty47 committed Oct 25, 2023
1 parent 6ae691b commit 8e61ef6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/nodes/da.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import (
log "github.com/sirupsen/logrus"
)

const errRemoteCommand = "Error executing remote command: "

var (
daContainerSetupName = "da-setup" // daContainerSetupName initContainer that we use to configure the nodes.
daContainerName = "da" // daContainerName container name which the pod runs.
Expand Down Expand Up @@ -107,7 +109,7 @@ func SetupDANodeWithConnections(peer config.Peer) error {
k8s.GetCurrentNamespace(),
command)
if err != nil {
log.Error("Error executing remote command: ", err)
log.Error(errRemoteCommand, err)
return err
}

Expand Down Expand Up @@ -145,7 +147,7 @@ func SetIdPrefix(peer config.Peer, c string, i int) (string, error) {
k8s.GetCurrentNamespace(),
comm)
if err != nil {
log.Error("Error executing remote command: ", err)
log.Error(errRemoteCommand, err)
return "", err
}
log.Info("command - ip is: ", output)
Expand All @@ -169,7 +171,7 @@ func GenerateNodeIdAndSaveIt(
k8s.GetCurrentNamespace(),
command)
if err != nil {
log.Error("Error executing remote command: ", err)
log.Error(errRemoteCommand, err)
return "", err
}

Expand Down

0 comments on commit 8e61ef6

Please sign in to comment.