Skip to content

Commit 534e2cc

Browse files
committed
Fix(curveadm deploy): newer version ss answers invalid arument
Signed-off-by: caoxianfei1 <[email protected]>
1 parent 003ad85 commit 534e2cc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

internal/task/task/checker/network.go

+6
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,14 @@ func checkPortInUse(success *bool, out *string, host string, port int) step.Lamb
5454
}
5555

5656
if len(*out) > 0 {
57+
if *out == "RTNETLINK answers: Invalid argument" {
58+
return nil
59+
}
60+
5761
return errno.ERR_PORT_ALREADY_IN_USE.
5862
F("host=%s, port=%d", host, port)
5963
}
64+
6065
return nil
6166
}
6267
}
@@ -103,6 +108,7 @@ func (s *step2CheckPortStatus) Execute(ctx *context.Context) error {
103108
steps = append(steps, &step.ContainerExec{
104109
ContainerId: s.containerId,
105110
Command: command,
111+
Success: s.success,
106112
Out: &out,
107113
ExecOptions: s.curveadm.ExecOptions(),
108114
})

0 commit comments

Comments
 (0)