Skip to content

Commit

Permalink
跳过Manager Status
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Nov 15, 2024
1 parent 1f17e24 commit f964cf8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions node.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ func (receiver node) Info(nodeName string) DockerNodeVO {

switch name {
case "Address":
// 跳过Manager Status
if strings.Contains(val, ":") {
return
}
vo.IP = val
case "Operating System":
vo.OS = val
Expand Down

0 comments on commit f964cf8

Please sign in to comment.