From 0bb1bb37f1bf3a13ccec7a8910a85dc062c693f5 Mon Sep 17 00:00:00 2001 From: Emmanuelle Vargas-Gonzalez Date: Mon, 2 Apr 2018 07:40:25 -0400 Subject: [PATCH] Call parse() on stix_data # Fix on MemorySource.load_from_file() --- stix2/datastore/memory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stix2/datastore/memory.py b/stix2/datastore/memory.py index e057271..1c4ff6c 100644 --- a/stix2/datastore/memory.py +++ b/stix2/datastore/memory.py @@ -295,5 +295,5 @@ class MemorySource(DataSource): for stix_obj in stix_data["objects"]: _add(self, stix_data=parse(stix_obj, allow_custom=self.allow_custom, version=stix_data["spec_version"])) else: - _add(self, stix_data=parse(stix_obj, allow_custom=self.allow_custom, version=version)) + _add(self, stix_data=parse(stix_data, allow_custom=self.allow_custom, version=version)) load_from_file.__doc__ = MemoryStore.load_from_file.__doc__