-
Notifications
You must be signed in to change notification settings - Fork 42
Closed
Description
In the to_dict() function, it's accidentally printing out "is_hidden" information instead:
diff --git a/cybox/objects/process_object.py b/cybox/objects/process_object.py
index 77feaf4..23694a9 100644
--- a/cybox/objects/process_object.py
+++ b/cybox/objects/process_object.py
@@ -5,7 +5,8 @@ from cybox.objects.address_object import Address
from cybox.objects.network_connection_object import NetworkConnection
from cybox.common.extracted_string_list import ExtractedStringList
from cybox.common.environment_variable_list import EnvironmentVariableList
-from cybox.common.properties import ObjectProperties, String, DateTime, UnsignedInteger, Duration
+from cybox.common.properties import String, DateTime, UnsignedInteger, Duration
+from cybox.common import ObjectProperties
class Process(ObjectProperties):
_XSI_NS = "ProcessObj"
@@ -78,7 +79,7 @@ class Process(ObjectProperties):
process_dict = {}
if self.is_hidden is not None: process_dict['is_hidden'] = self.is_hidden
- if self.pid is not None: process_dict['is_hidden'] = self.pid.to_dict()
+ if self.pid is not None: process_dict['pid'] = self.pid.to_dict()
if self.name is not None: process_dict['name'] = self.name.to_dict()
if self.creation_time is not None: process_dict['creation_time'] = self.creation_time.to_dict()
if self.parent_pid is not None: process_dict['parent_pid'] = self.parent_pid.to_dict()
@@ -223,4 +224,4 @@ class ImageInfo(cybox.Entity):
image_info_.current_directory = String.from_dict(image_info_obj.get_Current_Directory())
image_info_.path = String.from_dict(image_info_obj.get_Path())
- return image_info_
\ No newline at end of file
+ return image_info_
Metadata
Metadata
Assignees
Labels
No labels