From: Jason Ish Date: Tue, 16 Jan 2018 22:46:13 +0000 (-0600) Subject: list-sources: print subscribe URL X-Git-Tag: 1.0.0b1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1063f48f6013ae18475eabf2a5651367c82ec6de;p=thirdparty%2Fsuricata-update.git list-sources: print subscribe URL The subscribe URL may be a sentence with a URL in it which may contain useful information. --- diff --git a/suricata/update/commands/listsources.py b/suricata/update/commands/listsources.py index c6be303..26a8540 100644 --- a/suricata/update/commands/listsources.py +++ b/suricata/update/commands/listsources.py @@ -53,3 +53,7 @@ def list_sources(): print(" %s: %s" % ( util.bright_cyan("Parameters"), util.bright_magenta(", ".join(source["parameters"])))) + if "subscribe-url" in source: + print(" %s: %s" % ( + util.bright_cyan("Subscription"), + util.bright_magenta(source["subscribe-url"])))