Skip to content

Commit 2efa825

Browse files
authored
add newline to the pdsh output for nebius (#174)
Signed-off-by: Dmitry Shmulevich <[email protected]>
1 parent 725f19b commit 2efa825

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/providers/nebius/imds.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ package nebius
77

88
import (
99
"context"
10+
"fmt"
1011

1112
"github.com/NVIDIA/topograph/internal/exec"
1213
"github.com/NVIDIA/topograph/pkg/providers"
@@ -31,7 +32,7 @@ func instanceToNodeMap(ctx context.Context, nodes []string) (map[string]string,
3132
}
3233

3334
func getRegions(ctx context.Context, nodes []string) (map[string]string, error) {
34-
stdout, err := exec.Pdsh(ctx, "cat "+IMDSRegionPath, nodes)
35+
stdout, err := exec.Pdsh(ctx, fmt.Sprintf("echo $(cat %s)", IMDSRegionPath), nodes)
3536
if err != nil {
3637
return nil, err
3738
}

0 commit comments

Comments
 (0)