diff --git a/cli.go b/cli.go index 577ab4e..95ec36f 100644 --- a/cli.go +++ b/cli.go @@ -30,7 +30,7 @@ func cmdList(stdout io.Writer, stderr io.Writer, s *state) int { func cmdHost(stdout io.Writer, stderr io.Writer, s *state, hostname string) int { for _, res := range s.resources() { - if hostname == res.Name { + if hostname == res.Address() { return output(stdout, stderr, res.Attributes()) } }