Skip to content

Commit 8ca5a4a

Browse files
authored
Merge pull request #104 from renproject/release/3.1.3
Release 3.1.3
2 parents 5c967e1 + f736596 commit 8ca5a4a

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

cmd/provider/provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ func initNode(ctx *cli.Context) error {
152152
var conf darknode.Config
153153
if configFile != "" {
154154
var err error
155-
conf, err = darknode.NewConfigFromJSONFile(path)
155+
conf, err = darknode.NewConfigFromJSONFile(configFile)
156156
if err != nil {
157157
return errors.New("invalid config file")
158158
}

util/node.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,11 @@ func IP(name string) (string, error) {
9090

9191
cmd := fmt.Sprintf("cd %v && terraform output ip", NodePath(name))
9292
ip, err := CommandOutput(cmd)
93+
ip = strings.TrimSpace(ip)
9394
if strings.HasPrefix(ip, "\"") {
9495
ip = strings.Trim(ip, "\"")
9596
}
96-
return strings.TrimSpace(ip), err
97+
return ip, err
9798
}
9899

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

0 commit comments

Comments
 (0)