Skip to content

Commit fe184e3

Browse files
committed
Fixed linting (flake8)
Signed-off-by: rickstardust <[email protected]>
1 parent 52c0396 commit fe184e3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

suzieq/engines/pandas/ospf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,13 @@ def _get_combined_df(self, **kwargs):
103103
nbr_df = self._get_table_sqobj('ospfNbr') \
104104
.get(columns=nbrcols, **kwargs)
105105
if nbr_df.empty:
106-
missing_cols = set(ospfschema.get_display_fields(['default'])) - set(df.columns)
106+
ospf_clmns = ospfschema.get_display_fields(['default'])
107+
missing_cols = set(ospf_clmns) - set(df.columns)
107108
for col in missing_cols:
108109
df[col] = np.nan
109110
df = df.fillna({'peerIP': '-', 'peerHostname': '',
110-
'lastChangeTime': 0, 'numChanges': 0, 'ifState': '', 'adjState': ''})
111+
'lastChangeTime': 0, 'numChanges': 0,
112+
'ifState': '', 'adjState': ''})
111113
return df
112114

113115
merge_cols = [x for x in ['namespace', 'hostname', 'ifname']

0 commit comments

Comments
 (0)