Skip to content

Commit

Permalink
Merge pull request #104 from renproject/release/3.1.3
Browse files Browse the repository at this point in the history
Release 3.1.3
  • Loading branch information
tok-kkk committed Feb 10, 2022
2 parents 5c967e1 + f736596 commit 8ca5a4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func initNode(ctx *cli.Context) error {
var conf darknode.Config
if configFile != "" {
var err error
conf, err = darknode.NewConfigFromJSONFile(path)
conf, err = darknode.NewConfigFromJSONFile(configFile)
if err != nil {
return errors.New("invalid config file")
}
Expand Down
3 changes: 2 additions & 1 deletion util/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,11 @@ func IP(name string) (string, error) {

cmd := fmt.Sprintf("cd %v && terraform output ip", NodePath(name))
ip, err := CommandOutput(cmd)
ip = strings.TrimSpace(ip)
if strings.HasPrefix(ip, "\"") {
ip = strings.Trim(ip, "\"")
}
return strings.TrimSpace(ip), err
return ip, err
}

// Version gets the version of the software the darknode currently is running.
Expand Down

0 comments on commit 8ca5a4a

Please sign in to comment.