]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
fixup mgr/test_orchestrator: validate drive group matches anything.
authorSebastian Wagner <sebastian.wagner@suse.com>
Tue, 10 Mar 2020 11:21:09 +0000 (12:21 +0100)
committerSebastian Wagner <sebastian.wagner@suse.com>
Tue, 10 Mar 2020 12:28:23 +0000 (13:28 +0100)
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
src/pybind/mgr/test_orchestrator/module.py

index f4b624a31c978a0e87ce524f3afcd9e812750116..adfc8137c34ec296aa63ebc5c613f3c0ec35985b 100644 (file)
@@ -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(