Add Full Domain to -J

This commit is contained in:
Narbeh Arakil 2020-05-24 23:40:29 +04:00
parent 67c70fef45
commit 16cc5969ba

View File

@ -234,8 +234,8 @@ def show_result(user_args):
print(json.dumps(context))
if user_args.json_save_true:
for host in hosts:
with open(host.split('.')[0] + '.json', 'w', encoding='UTF-8') as fp:
for host in context.keys():
with open(host + '.json', 'w', encoding='UTF-8') as fp:
fp.write(json.dumps(context[host]))