From: Sebastian Wagner Date: Tue, 10 Mar 2020 11:21:09 +0000 (+0100) Subject: fixup mgr/test_orchestrator: validate drive group matches anything. X-Git-Tag: v15.1.1~33^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e398f1e87d87978578a979a98af7b667c77e165b;p=ceph.git fixup mgr/test_orchestrator: validate drive group matches anything. Signed-off-by: Sebastian Wagner --- diff --git a/src/pybind/mgr/test_orchestrator/module.py b/src/pybind/mgr/test_orchestrator/module.py index f4b624a31c9..adfc8137c34 100644 --- a/src/pybind/mgr/test_orchestrator/module.py +++ b/src/pybind/mgr/test_orchestrator/module.py @@ -257,7 +257,7 @@ class TestOrchestrator(MgrModule, orchestrator.Orchestrator): # type: (List[orchestrator.HostSpec]) -> None drive_group.validate() if drive_group.placement.host_pattern: - if not drive_group.placement.pattern_matches_hosts(all_hosts): + if not drive_group.placement.pattern_matches_hosts([h.hostname for h in all_hosts]): raise orchestrator.OrchestratorValidationError('failed to match') return self.get_hosts().then(run).then( on_complete=orchestrator.ProgressReference(