Skip to content

Commit e9059df

Browse files
authored
PMK-6388: fix prep-node failure with segmentation fault (#400)
Signed-off-by: Mridul Gain <mridul@platform9.com>
1 parent 4e08d46 commit e9059df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/pmk/node.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func PrepNode(ctx objects.Config, allClients client.Client, auth keystone.Keysto
144144
s.Suffix = " Initialising host"
145145
zap.S().Debug("Initialising host")
146146
zap.S().Debug("Identifying the hostID from conf")
147-
cmd := `grep host_id /etc/pf9/host_id.conf | cut -d '=' -f2`
147+
cmd := `grep host_id /etc/pf9/host_id.conf && cut -d '=' -f2`
148148
output, err := allClients.Executor.RunWithStdout("bash", "-c", cmd)
149149
output = strings.TrimSpace(output)
150150
if err != nil || output == "" {

0 commit comments

Comments
 (0)