fix: Set the top-level package version

pull/22/head
Hannah Ward 2017-08-18 11:13:37 +01:00
parent 8ae5ce723d
commit 185c7e5c79
No known key found for this signature in database
GPG Key ID: 6F3BAD60DE190290
1 changed files with 3 additions and 0 deletions

View File

@ -83,6 +83,9 @@ while True:
if hasattr(i, "version"):
i.version = version
# Set the top-level
pkg.version = version
try:
log.info("Using binding %s", "urn:stix.mitre.org:xml:{}".format(version))
cli.push(content=pkg.to_xml().decode("utf-8"),