Skip to content

Commit

Permalink
add more debug info on simple pb
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed May 3, 2023
1 parent c8836d7 commit 577aec1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/config/playbook.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,10 @@ func unmarshalPlaybookFile(fname string, data []byte, res *PlayBook) (err error)
if strings.Contains(t, ":") {
ip, port := splitIPAddress(t)
target.Hosts = append(target.Hosts, Destination{Host: ip, Port: port}) // set as hosts in case of ip:port
log.Printf("[DEBUG] set target host %s:%d", ip, port)
} else {
target.Names = append(target.Names, t) // set as names in case of just name
log.Printf("[DEBUG] set target name %s", t)
}
}
res.Targets = map[string]Target{"default": target}
Expand Down

0 comments on commit 577aec1

Please sign in to comment.