mirror of
https://github.com/dcarrillo/digaws.git
synced 2024-12-22 16:18:00 +00:00
Return an empty array when there is no data for json output
This commit is contained in:
parent
ef31af865a
commit
204ec8f9ff
@ -1,2 +1,2 @@
|
||||
__version__ = '1.0.3'
|
||||
__version__ = '1.0.4'
|
||||
__description__ = 'Look up canonical information for AWS IP addresses and networks'
|
||||
|
@ -127,7 +127,6 @@ class DigAWSPrettyPrinter:
|
||||
item_dict.update({'network_border_group': prefix['network_border_group']})
|
||||
data.append(item_dict)
|
||||
|
||||
if data:
|
||||
print(json.dumps(data, indent=2))
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user