mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
use OrderDict because csv.DictReader returns a dict after version 3.7 (#2496)
* use OrderDict because csv.DictReader returns a dict after version 3.7
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import re
|
||||
import csv
|
||||
import json
|
||||
from collections import OrderedDict
|
||||
from io import StringIO
|
||||
|
||||
class Cmd():
|
||||
@@ -317,6 +318,7 @@ class showServers(baseStat):
|
||||
|
||||
reader = self.getDict(res)
|
||||
for row in reader:
|
||||
row = OrderedDict(row)
|
||||
# show only server
|
||||
if row['svname'] in ['BACKEND', 'FRONTEND']:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user