From bd5a10b08cd8e0f05882cf4ac317f64bf9730b18 Mon Sep 17 00:00:00 2001 From: Chris Houseknecht Date: Thu, 3 May 2018 09:17:41 -0400 Subject: [PATCH] Fix lint stuff --- filter_plugins/mathstuff.py | 3 ++- strategy_plugins/free.py | 5 +++-- strategy_plugins/linear.py | 1 - 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/filter_plugins/mathstuff.py b/filter_plugins/mathstuff.py index 2b0dbc7..e7b59a7 100644 --- a/filter_plugins/mathstuff.py +++ b/filter_plugins/mathstuff.py @@ -167,7 +167,8 @@ def rekey_on_member(data, key, duplicates='error'): # minimun contain {key: key_elem} if new_obj.get(key_elem, None): if duplicates == 'error': - raise errors.AnsibleFilterError("Key {0} is not unique, cannot correctly turn into dict".format(key_elem)) + raise errors.AnsibleFilterError("Key {0} is not unique, cannot correctly turn into " + "dict".format(key_elem)) elif duplicates == 'overwrite': new_obj[key_elem] = item else: diff --git a/strategy_plugins/free.py b/strategy_plugins/free.py index 8a4dd25..d3369b6 100644 --- a/strategy_plugins/free.py +++ b/strategy_plugins/free.py @@ -80,8 +80,9 @@ def run(self, iterator, play_context): break work_to_do = False # assume we have no more work to do - starting_host = last_host # save current position so we know when we've looped - # back around and need to break + + # save current position so we know when we've looped back around and need to break + starting_host = last_host # try and find an unblocked host with a task to run host_results = [] diff --git a/strategy_plugins/linear.py b/strategy_plugins/linear.py index 8d94061..803d9f9 100644 --- a/strategy_plugins/linear.py +++ b/strategy_plugins/linear.py @@ -308,7 +308,6 @@ def run(self, iterator, play_context): # this is a fatal error, so we abort here regardless of block state return self._tqm.RUN_ERROR - include_failure = False if len(included_files) > 0: display.debug("we have included files to process")