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:
1 parent
3d4acd1bfa
commit
5d8a1deda1
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user