Commit ce85222f by Michael DeHaan

What we are running is actually a "play" (multiple plays per playbook) so rename…

What we are running is actually a "play" (multiple plays per playbook) so rename the function to make it more clear
parent adf1492d
...@@ -161,7 +161,7 @@ class PlayBook(object): ...@@ -161,7 +161,7 @@ class PlayBook(object):
# loop through all patterns and run them # loop through all patterns and run them
self.callbacks.on_start() self.callbacks.on_start()
for pattern in self.playbook: for pattern in self.playbook:
self._run_pattern(pattern) self._run_play(pattern)
# summarize the results # summarize the results
results = {} results = {}
...@@ -389,7 +389,7 @@ class PlayBook(object): ...@@ -389,7 +389,7 @@ class PlayBook(object):
x['run'] = [] x['run'] = []
x['run'].append(host) x['run'].append(host)
def _run_pattern(self, pg): def _run_play(self, pg):
''' '''
run a list of tasks for a given pattern, in order run a list of tasks for a given pattern, in order
''' '''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment