Skip to content

Commit aa1c5d4

Browse files
committed
Match host command by Address, not Name
1 parent 7276f41 commit aa1c5d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func cmdList(stdout io.Writer, stderr io.Writer, s *state) int {
3030

3131
func cmdHost(stdout io.Writer, stderr io.Writer, s *state, hostname string) int {
3232
for _, res := range s.resources() {
33-
if hostname == res.Name {
33+
if hostname == res.Address() {
3434
return output(stdout, stderr, res.Attributes())
3535
}
3636
}

0 commit comments

Comments
 (0)