PEP 8 W291 whitespace cleanup.

This commit is contained in:
Matt Clay 2017-01-27 15:20:31 -08:00
commit d913f69ba1
166 changed files with 493 additions and 565 deletions

View file

@ -1,4 +1,4 @@
# (C) 2016, Joel, http://github.com/jjshoe
# (C) 2016, Joel, http://github.com/jjshoe
# (C) 2015, Tom Paine, <github@aioue.net>
# (C) 2014, Jharrod LaFon, @JharrodLaFon
# (C) 2012-2013, Michael DeHaan, <michael.dehaan@gmail.com>
@ -87,7 +87,7 @@ class CallbackModule(CallbackBase):
if self.task_output_limit == 'all':
self.task_output_limit = None
else:
self.task_output_limit = int(self.task_output_limit)
self.task_output_limit = int(self.task_output_limit)
super(CallbackModule, self).__init__()
@ -119,7 +119,7 @@ class CallbackModule(CallbackBase):
timestamp(self)
results = self.stats.items()
results = self.stats.items()
# Sort the tasks by the specified sort
if self.sort_order != 'none':
@ -129,7 +129,7 @@ class CallbackModule(CallbackBase):
reverse=self.sort_order,
)
# Display the number of tasks specified or the default of 20
# Display the number of tasks specified or the default of 20
results = results[:self.task_output_limit]
# Print the timings

View file

@ -38,7 +38,7 @@ class CallbackModule(CallbackBase):
self.handler = logging.handlers.SysLogHandler(
address = (os.getenv('SYSLOG_SERVER','localhost'),
os.getenv('SYSLOG_PORT',514)),
os.getenv('SYSLOG_PORT',514)),
facility= os.getenv('SYSLOG_FACILITY',logging.handlers.SysLogHandler.LOG_USER)
)
self.logger.addHandler(self.handler)

View file

@ -36,7 +36,7 @@ __metaclass__ = type
# EXAMPLES
# - name: copy first existing file found to /some/file
# action: copy src=$item dest=/some/file
# with_first_found:
# with_first_found:
# - files: foo ${inventory_hostname} bar
# paths: /tmp/production /tmp/staging
@ -50,7 +50,7 @@ __metaclass__ = type
# - name: copy first existing file found to /some/file
# action: copy src=$item dest=/some/file
# with_first_found:
# with_first_found:
# - files: /some/place/foo ${inventory_hostname} /some/place/else
# that will look for files in this order:
@ -102,7 +102,7 @@ __metaclass__ = type
# - templates
# the above will return an empty list if the files cannot be found at all
# if skip is unspecificed or if it is set to false then it will return a list
# if skip is unspecificed or if it is set to false then it will return a list
# error which can be caught bye ignore_errors: true for that action.
# finally - if you want you can use it, in place to replace first_available_file:

View file

@ -31,8 +31,8 @@ class LookupModule(LookupBase):
'''
http://docs.python.org/2/library/subprocess.html#popen-constructor
The shell argument (which defaults to False) specifies whether to use the
shell as the program to execute. If shell is True, it is recommended to pass
The shell argument (which defaults to False) specifies whether to use the
shell as the program to execute. If shell is True, it is recommended to pass
args as a string rather than as a sequence
https://github.com/ansible/ansible/issues/6550

View file

@ -28,7 +28,7 @@ from ansible.plugins.lookup import LookupBase
# - debug: msg=$item
# with_random_choice:
# - one
# - two
# - two
# - three
class LookupModule(LookupBase):

View file

@ -385,7 +385,7 @@ class StrategyBase:
self._tqm._stats.increment('failures', original_host.name)
# grab the current state and if we're iterating on the rescue portion
# of a block then we save the failed task in a special var for use
# of a block then we save the failed task in a special var for use
# within the rescue/always
state, _ = iterator.get_next_task_for_host(original_host, peek=True)