https://github.com/ceph/ceph/pull/34860 broke Rook Integration tests (Rook orchestrator module)
This fix the error that can be seen in:
https://jenkins.rook.io/blue/rest/organizations/jenkins/pipelines/rook/pipelines/rook/branches/master/runs/2046/nodes/63/steps/121/log/?start=0
Signed-off-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
(cherry picked from commit
9fd4b481fc4d18e9794806167588d6c6cb1aa46a)
def execute(all_hosts_):
# type: (List[orchestrator.HostSpec]) -> orchestrator.Completion
- all_hosts = [h.hostname for h in all_hosts_]
- matching_hosts = drive_group.placement.filter_matching_hosts(lambda label=None, as_hostspec=None: all_hosts)
+ matching_hosts = drive_group.placement.filter_matching_hosts(lambda label=None, as_hostspec=None: all_hosts_)
assert len(matching_hosts) == 1