From 16e572cd369559e6a0688fc6a16ed8b84df0cb34 Mon Sep 17 00:00:00 2001 From: Wes Davis Date: Sat, 21 Apr 2018 23:15:16 -0400 Subject: [PATCH] PEP8 compliance --- ZenPacks/daviswr/Interfaces/__init__.py | 5 ++++- ZenPacks/daviswr/Interfaces/datasources/__init__.py | 1 - ZenPacks/daviswr/Interfaces/lib/__init__.py | 1 - ZenPacks/daviswr/Interfaces/libexec/__init__.py | 1 - ZenPacks/daviswr/Interfaces/migrate/__init__.py | 1 - ZenPacks/daviswr/Interfaces/modeler/__init__.py | 1 - ZenPacks/daviswr/Interfaces/modeler/plugins/__init__.py | 1 - ZenPacks/daviswr/Interfaces/parsers/__init__.py | 1 - ZenPacks/daviswr/Interfaces/resources/__init__.py | 1 - ZenPacks/daviswr/Interfaces/tests/__init__.py | 1 - ZenPacks/daviswr/Interfaces/thresholds/__init__.py | 1 - ZenPacks/daviswr/Interfaces/zenpack.yaml | 4 ++-- transforms/Perf/Interface/class.py | 4 ++-- 13 files changed, 8 insertions(+), 15 deletions(-) diff --git a/ZenPacks/daviswr/Interfaces/__init__.py b/ZenPacks/daviswr/Interfaces/__init__.py index a1cb83c..52d45d0 100644 --- a/ZenPacks/daviswr/Interfaces/__init__.py +++ b/ZenPacks/daviswr/Interfaces/__init__.py @@ -1,5 +1,8 @@ import os from ZenPacks.zenoss.ZenPackLib import zenpacklib -CFG = zenpacklib.load_yaml([os.path.join(os.path.dirname(__file__), "zenpack.yaml")], verbose=False, level=30) +CFG = zenpacklib.load_yaml( + [os.path.join(os.path.dirname(__file__), "zenpack.yaml")], + verbose=False, + level=30) schema = CFG.zenpack_module.schema diff --git a/ZenPacks/daviswr/Interfaces/datasources/__init__.py b/ZenPacks/daviswr/Interfaces/datasources/__init__.py index 8b13789..e69de29 100644 --- a/ZenPacks/daviswr/Interfaces/datasources/__init__.py +++ b/ZenPacks/daviswr/Interfaces/datasources/__init__.py @@ -1 +0,0 @@ - diff --git a/ZenPacks/daviswr/Interfaces/lib/__init__.py b/ZenPacks/daviswr/Interfaces/lib/__init__.py index 8b13789..e69de29 100644 --- a/ZenPacks/daviswr/Interfaces/lib/__init__.py +++ b/ZenPacks/daviswr/Interfaces/lib/__init__.py @@ -1 +0,0 @@ - diff --git a/ZenPacks/daviswr/Interfaces/libexec/__init__.py b/ZenPacks/daviswr/Interfaces/libexec/__init__.py index 8b13789..e69de29 100755 --- a/ZenPacks/daviswr/Interfaces/libexec/__init__.py +++ b/ZenPacks/daviswr/Interfaces/libexec/__init__.py @@ -1 +0,0 @@ - diff --git a/ZenPacks/daviswr/Interfaces/migrate/__init__.py b/ZenPacks/daviswr/Interfaces/migrate/__init__.py index 8b13789..e69de29 100644 --- a/ZenPacks/daviswr/Interfaces/migrate/__init__.py +++ b/ZenPacks/daviswr/Interfaces/migrate/__init__.py @@ -1 +0,0 @@ - diff --git a/ZenPacks/daviswr/Interfaces/modeler/__init__.py b/ZenPacks/daviswr/Interfaces/modeler/__init__.py index 8b13789..e69de29 100644 --- a/ZenPacks/daviswr/Interfaces/modeler/__init__.py +++ b/ZenPacks/daviswr/Interfaces/modeler/__init__.py @@ -1 +0,0 @@ - diff --git a/ZenPacks/daviswr/Interfaces/modeler/plugins/__init__.py b/ZenPacks/daviswr/Interfaces/modeler/plugins/__init__.py index 8b13789..e69de29 100644 --- a/ZenPacks/daviswr/Interfaces/modeler/plugins/__init__.py +++ b/ZenPacks/daviswr/Interfaces/modeler/plugins/__init__.py @@ -1 +0,0 @@ - diff --git a/ZenPacks/daviswr/Interfaces/parsers/__init__.py b/ZenPacks/daviswr/Interfaces/parsers/__init__.py index 8b13789..e69de29 100644 --- a/ZenPacks/daviswr/Interfaces/parsers/__init__.py +++ b/ZenPacks/daviswr/Interfaces/parsers/__init__.py @@ -1 +0,0 @@ - diff --git a/ZenPacks/daviswr/Interfaces/resources/__init__.py b/ZenPacks/daviswr/Interfaces/resources/__init__.py index 8b13789..e69de29 100644 --- a/ZenPacks/daviswr/Interfaces/resources/__init__.py +++ b/ZenPacks/daviswr/Interfaces/resources/__init__.py @@ -1 +0,0 @@ - diff --git a/ZenPacks/daviswr/Interfaces/tests/__init__.py b/ZenPacks/daviswr/Interfaces/tests/__init__.py index 8b13789..e69de29 100644 --- a/ZenPacks/daviswr/Interfaces/tests/__init__.py +++ b/ZenPacks/daviswr/Interfaces/tests/__init__.py @@ -1 +0,0 @@ - diff --git a/ZenPacks/daviswr/Interfaces/thresholds/__init__.py b/ZenPacks/daviswr/Interfaces/thresholds/__init__.py index 8b13789..e69de29 100644 --- a/ZenPacks/daviswr/Interfaces/thresholds/__init__.py +++ b/ZenPacks/daviswr/Interfaces/thresholds/__init__.py @@ -1 +0,0 @@ - diff --git a/ZenPacks/daviswr/Interfaces/zenpack.yaml b/ZenPacks/daviswr/Interfaces/zenpack.yaml index 587a48c..cf9ceb9 100644 --- a/ZenPacks/daviswr/Interfaces/zenpack.yaml +++ b/ZenPacks/daviswr/Interfaces/zenpack.yaml @@ -1538,8 +1538,8 @@ event_classes: # Drop if gig+ interface linked at a lower speed # Will only work with some vendors elif ((evt.component.lower().startswith('g') - or evt.component.lower().startswith('te') - or evt.component.lower().startswith('x')) + or evt.component.lower().startswith('te') + or evt.component.lower().startswith('x')) and current <= 100000000): evt._action = 'drop' # Drop if span port diff --git a/transforms/Perf/Interface/class.py b/transforms/Perf/Interface/class.py index 2e8d94e..4355aaa 100644 --- a/transforms/Perf/Interface/class.py +++ b/transforms/Perf/Interface/class.py @@ -61,8 +61,8 @@ # Drop if gig+ interface linked at a lower speed # Will only work with some vendors elif ((evt.component.lower().startswith('g') - or evt.component.lower().startswith('te') - or evt.component.lower().startswith('x')) + or evt.component.lower().startswith('te') + or evt.component.lower().startswith('x')) and current <= 100000000): evt._action = 'drop' # Drop if span port