mirror of
https://github.com/dcarrillo/digaws.git
synced 2024-11-13 06:01:13 +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,8 +127,7 @@ class DigAWSPrettyPrinter:
|
||||
item_dict.update({'network_border_group': prefix['network_border_group']})
|
||||
data.append(item_dict)
|
||||
|
||||
if data:
|
||||
print(json.dumps(data, indent=2))
|
||||
print(json.dumps(data, indent=2))
|
||||
|
||||
|
||||
class DigAWS():
|
||||
|
Loading…
Reference in New Issue
Block a user