From 8ae5ce723df05989ef352372e5ef358bddb06f7f Mon Sep 17 00:00:00 2001 From: Hannah Ward Date: Fri, 18 Aug 2017 11:06:13 +0100 Subject: [PATCH] fix: Explicitly state stix binding --- scripts/push_published_to_taxii.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/push_published_to_taxii.py b/scripts/push_published_to_taxii.py index 42f84cc..148de7b 100644 --- a/scripts/push_published_to_taxii.py +++ b/scripts/push_published_to_taxii.py @@ -84,8 +84,9 @@ while True: i.version = version try: - cli.push(pkg.to_xml().decode("utf-8"), - "urn:stix.mitre.org:xml:{}".format(version), + log.info("Using binding %s", "urn:stix.mitre.org:xml:{}".format(version)) + cli.push(content=pkg.to_xml().decode("utf-8"), + content_binding="urn:stix.mitre.org:xml:{}".format(version), uri="{}://{}/services/inbox".format(config.get("protocol", "http"), config["domain"]), collection_names=config["taxii"].get("collections", ["collection"]))