]> git.ipfire.org Git - thirdparty/suricata-update.git/commitdiff
list-sources: show replaces info
authorJason Ish <ish@unx.ca>
Mon, 4 Dec 2017 13:10:15 +0000 (07:10 -0600)
committerJason Ish <ish@unx.ca>
Mon, 4 Dec 2017 13:10:15 +0000 (07:10 -0600)
suricata/update/commands/listsources.py

index 4a9976129e5210030289e893518401da5af43c72..0ab4a716e11eb3eb4941f4da7987ac5586583ee9 100644 (file)
@@ -45,3 +45,7 @@ def list_sources(config):
             print("  %s: %s" % (
                 util.bright_cyan("Tags"),
                 util.bright_magenta(", ".join(source["tags"]))))
+        if "replaces" in source:
+            print("  %s: %s" % (
+                util.bright_cyan("Replaces"),
+                util.bright_magenta(", ".join(source["replaces"]))))