Skip to content

Commit

Permalink
Fix lint stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Houseknecht committed May 3, 2018
1 parent e820157 commit bd5a10b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion filter_plugins/mathstuff.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 3 additions & 2 deletions strategy_plugins/free.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down
1 change: 0 additions & 1 deletion strategy_plugins/linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit bd5a10b

Please sign in to comment.