mirror of
https://github.com/status-im/infra-utils.git
synced 2025-02-23 01:18:08 +00:00
cloudflare/fqdns.py: fix filtering by type
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
b0d91bf3d5
commit
5406e42d58
@ -15,7 +15,7 @@ def format_csv(record):
|
||||
)
|
||||
|
||||
def format_table(record):
|
||||
return '{:>20} {:1} {:>6} {:30} {:30}'.format(
|
||||
return '{:>20} {:1} {:>6} {:30} {}'.format(
|
||||
record['id'],
|
||||
('P' if record['proxied'] else ''),
|
||||
record['type'],
|
||||
@ -52,6 +52,8 @@ def main():
|
||||
formatter = format_csv
|
||||
|
||||
for r in records:
|
||||
if opts.type and r['type'] != opts.type:
|
||||
continue
|
||||
print(formatter(r))
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
Loading…
x
Reference in New Issue
Block a user