Skip to content

Commit

Permalink
fix port validation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Naseredin Aramnejad committed Mar 16, 2022
1 parent 90017d5 commit 8d52e01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ func validateNode(ne *Nokia_1830PSS) error {
if err := validateIpAddress(ne.Ip); err != nil {
return err
}
if _, err := strconv.Atoi(ne.Port); err == nil {
if _, err := strconv.Atoi(ne.Port); err != nil {
return fmt.Errorf("provided port: %v - wrong port number", ne.Port)
}

Expand Down

0 comments on commit 8d52e01

Please sign in to comment.