From ef4930603f79a3ba68e055eaef1e87289ff9f9b2 Mon Sep 17 00:00:00 2001 From: Brandon Myers Date: Fri, 5 Oct 2018 17:52:13 -0400 Subject: [PATCH] Fixup blank line at end of file --- .flake8 | 1 - alerts/promisc_kernel.py | 1 - alerts/ssh_lateral.py | 1 - alerts/ssl_blacklist_hit.py | 1 - cron/healthAndStatus.py | 1 - lib/utilities/dict2List.py | 1 - rest/plugins/cymon.py | 1 - tests/alerts/test_ssh_key.py | 1 - 8 files changed, 8 deletions(-) diff --git a/.flake8 b/.flake8 index 7c204eb52..95adfc3cc 100644 --- a/.flake8 +++ b/.flake8 @@ -45,6 +45,5 @@ ignore = F811 # redefinition of unused 'datetime' from line 10 F821 # undefined name 'SysLogHandler' F841 # local variable 'CIDR' is assigned to but never used - W391 # blank line at end of file W503 # line break before binary operator W601 # .has_key() is deprecated, use 'in' diff --git a/alerts/promisc_kernel.py b/alerts/promisc_kernel.py index 650060278..730230548 100644 --- a/alerts/promisc_kernel.py +++ b/alerts/promisc_kernel.py @@ -38,4 +38,3 @@ def onAggregation(self, aggreg): summary = 'Promiscuous mode enabled on {1} [{0}]'.format(aggreg['count'], aggreg['value']) return self.createAlertDict(summary, category, tags, aggreg['events'], severity) - diff --git a/alerts/ssh_lateral.py b/alerts/ssh_lateral.py index 93072da61..a343d7b09 100644 --- a/alerts/ssh_lateral.py +++ b/alerts/ssh_lateral.py @@ -160,4 +160,3 @@ def onAggregation(self, aggreg): summary = 'SSH lateral movement outside policy: access to {} from {} as {}'.format(srchost, sampleip, sampleuser) return self.createAlertDict(summary, category, tags, aggreg['events'], severity) - diff --git a/alerts/ssl_blacklist_hit.py b/alerts/ssl_blacklist_hit.py index d08989fb7..50cfb3b0e 100644 --- a/alerts/ssl_blacklist_hit.py +++ b/alerts/ssl_blacklist_hit.py @@ -38,4 +38,3 @@ def onEvent(self, event): # Create the alert object based on these properties return self.createAlertDict(summary, category, tags, [event], severity) - diff --git a/cron/healthAndStatus.py b/cron/healthAndStatus.py index 1c318a0c8..e58f5b40e 100755 --- a/cron/healthAndStatus.py +++ b/cron/healthAndStatus.py @@ -184,4 +184,3 @@ def initConfig(): initConfig() initLogger() main() - diff --git a/lib/utilities/dict2List.py b/lib/utilities/dict2List.py index c53cafd1a..ed1597fd8 100644 --- a/lib/utilities/dict2List.py +++ b/lib/utilities/dict2List.py @@ -35,4 +35,3 @@ def dict2List(inObj): yield v else: yield '' - diff --git a/rest/plugins/cymon.py b/rest/plugins/cymon.py index f1f01802d..9e04589b4 100644 --- a/rest/plugins/cymon.py +++ b/rest/plugins/cymon.py @@ -92,4 +92,3 @@ def initConfiguration(self): self.options.cymonapikey = getConfig('cymonapikey', '', self.configfile) - diff --git a/tests/alerts/test_ssh_key.py b/tests/alerts/test_ssh_key.py index 97c124747..df09248f8 100644 --- a/tests/alerts/test_ssh_key.py +++ b/tests/alerts/test_ssh_key.py @@ -114,4 +114,3 @@ class TestSSHKey(AlertTestSuite): expected_alert=specific_alert ) ) -