From 7263b75909bd4fc720f40ae83b3407e05d7da190 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Mon, 11 May 2015 09:57:05 -0600 Subject: [PATCH] Clarify Task.filter_hosts() docstring Signed-off-by: Zack Cerza --- teuthology/task/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/teuthology/task/__init__.py b/teuthology/task/__init__.py index e9112279f3..32aed56aeb 100644 --- a/teuthology/task/__init__.py +++ b/teuthology/task/__init__.py @@ -43,9 +43,10 @@ class Task(object): def filter_hosts(self): """ Look for a 'hosts' list in self.config. Each item in the list may - either be a role or a hostname. The task will then be run against only - those hosts which match one (or more) of the roles or hostnames - specified. + either be a role or a hostname. Builds a new Cluster object containing + only those hosts which match one (or more) of the roles or hostnames + specified. The filtered Cluster object is stored as self.cluster so + that the task may only run against those hosts. """ if not hasattr(self.ctx, 'cluster'): return -- 2.39.5