From aa1c5d4b1992c6d422d03d93ab4588c3af2d4bbe Mon Sep 17 00:00:00 2001 From: Adam Mckaig Date: Wed, 9 Dec 2015 23:34:25 -0500 Subject: [PATCH] Match host command by Address, not Name --- cli.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) } }