File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments