Style fixes so "make pep8" is clean.

This commit is contained in:
Michael DeHaan 2013-04-10 16:37:49 -04:00
commit 29209c4913
11 changed files with 76 additions and 74 deletions

View file

@ -505,7 +505,7 @@ class PlayBook(object):
host_list = self._list_available_hosts(play.hosts)
if task.any_errors_fatal and len(host_list) < hosts_count:
host_list = None
host_list = None
# if no hosts remain, drop out
if not host_list:

View file

@ -90,7 +90,7 @@ class Play(object):
load_vars = {}
if self.playbook.inventory.basedir() is not None:
load_vars['inventory_dir'] = self.playbook.inventory.basedir();
load_vars['inventory_dir'] = self.playbook.inventory.basedir()
self._tasks = self._load_tasks(self._ds.get('tasks', []), load_vars)
self._handlers = self._load_tasks(self._ds.get('handlers', []), load_vars)
@ -226,7 +226,7 @@ class Play(object):
mv[k] = utils.template(self.basedir, v, mv)
dirname = self.basedir
if original_file:
dirname = os.path.dirname(original_file)
dirname = os.path.dirname(original_file)
include_file = utils.template(dirname, tokens[0], mv)
include_filename = utils.path_dwim(dirname, include_file)
data = utils.parse_yaml_from_file(include_filename)