mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
PEP 8 W291 whitespace cleanup.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user