]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Clarify Task.filter_hosts() docstring 487/head
authorZack Cerza <zack@redhat.com>
Mon, 11 May 2015 15:57:05 +0000 (09:57 -0600)
committerZack Cerza <zack@redhat.com>
Mon, 11 May 2015 15:57:05 +0000 (09:57 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/task/__init__.py

index e9112279f34a9f30e136898138e110d249fb6cb2..32aed56aeb86e9d27bde87154c52ce38b1d82853 100644 (file)
@@ -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