From 811b52fa6f255c04670e230192afa8f3bffb33da Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Tue, 5 Jan 2021 14:48:29 +0100 Subject: [PATCH] fix: [tool] link to object template fixed --- tools/list_of_objects.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/list_of_objects.py b/tools/list_of_objects.py index 631b3de..0f3dea1 100644 --- a/tools/list_of_objects.py +++ b/tools/list_of_objects.py @@ -3,7 +3,7 @@ # # # A simple converter of MISP objects to asciidoctor format -# Copyright (C) 2017-2019 Alexandre Dulaunoy +# Copyright (C) 2017-2021 Alexandre Dulaunoy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -46,5 +46,5 @@ for mispobject in objects: c = json.load(fp) if not c['description'].endswith('.'): c['description'] = c['description'] + "." - v = "- [objects/{}](objects/{}/definition.json) - {}".format(c['name'], c['name'], c['description']) + v = "- [objects/{}](https://github.com/MISP/misp-objects/blob/main/objects/{}/definition.json) - {}".format(c['name'], c['name'], c['description']) print(v)