We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5c967e1 + b8e5270 commit 56c4c7fCopy full SHA for 56c4c7f
1 file changed
util/node.go
@@ -90,10 +90,11 @@ func IP(name string) (string, error) {
90
91
cmd := fmt.Sprintf("cd %v && terraform output ip", NodePath(name))
92
ip, err := CommandOutput(cmd)
93
+ ip = strings.TrimSpace(ip)
94
if strings.HasPrefix(ip, "\"") {
95
ip = strings.Trim(ip, "\"")
96
}
- return strings.TrimSpace(ip), err
97
+ return ip, err
98
99
100
// Version gets the version of the software the darknode currently is running.
0 commit comments