ci: fix mgr test for host

The `mgr host ls` looks like:

`"addr": "10.1.0.27/fv-az244-362", "hostname": "fv-az244-362"`

Previously, we were picking `addr` which contains both IP and hostname
where the k8snode has the hostname only. So let's use the Hostname from
the mgr command output instead.

Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
Sébastien Han committed 2021-09-28 09:19:01 +02:00
1 parent 3d4acd1bfa
commit 5d8a1deda1
1 file changed
+1 -1
+1 -1
View File
@@ -250,7 +250,7 @@ func (s *CephMgrSuite) TestHostLs() {
var hostOutput []string
for _, hostItem := range hostsList {
hostOutput = append(hostOutput, hostItem.Addr)
hostOutput = append(hostOutput, hostItem.Hostname)
}
sort.Strings(hostOutput)