Skip to content

Commit

Permalink
PEP8 compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
daviswr committed Apr 22, 2018
1 parent a71017c commit 16e572c
Show file tree
Hide file tree
Showing 13 changed files with 8 additions and 15 deletions.
5 changes: 4 additions & 1 deletion ZenPacks/daviswr/Interfaces/__init__.py
Original file line number Diff line number Diff line change
@@ -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
1 change: 0 additions & 1 deletion ZenPacks/daviswr/Interfaces/datasources/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

1 change: 0 additions & 1 deletion ZenPacks/daviswr/Interfaces/lib/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

1 change: 0 additions & 1 deletion ZenPacks/daviswr/Interfaces/libexec/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

1 change: 0 additions & 1 deletion ZenPacks/daviswr/Interfaces/migrate/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

1 change: 0 additions & 1 deletion ZenPacks/daviswr/Interfaces/modeler/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

1 change: 0 additions & 1 deletion ZenPacks/daviswr/Interfaces/modeler/plugins/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

1 change: 0 additions & 1 deletion ZenPacks/daviswr/Interfaces/parsers/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

1 change: 0 additions & 1 deletion ZenPacks/daviswr/Interfaces/resources/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

1 change: 0 additions & 1 deletion ZenPacks/daviswr/Interfaces/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

1 change: 0 additions & 1 deletion ZenPacks/daviswr/Interfaces/thresholds/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

4 changes: 2 additions & 2 deletions ZenPacks/daviswr/Interfaces/zenpack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions transforms/Perf/Interface/class.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 16e572c

Please sign in to comment.