commit 8f8b6e656a6ef06bf0b99068a07a7d194783fc9b
Author: Matt Riedemann <email address hidden>
Date: Tue Jun 10 08:07:03 2014 -0700
Handle string types for InstanceActionEvent exc_tb serialization
Commit 59a6cf233b538d6666740de4796fce25ed8265aa added code to handle
serializing non-str exception traceback objects, but didn't account for
unicode. This change uses six.string_types to handle str and unicode
objects for the exc_tb argument.
Adds a new unit test for the unicode case and firms up two existing
tests for how traceback.format_tb is mocked (or shouldn't be in the case
of exc_tb being a str).
Reviewed: https:/ /review. openstack. org/99119 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=8f8b6e656a6 ef06bf0b99068a0 7a7d194783fc9b
Committed: https:/
Submitter: Jenkins
Branch: master
commit 8f8b6e656a6ef06 bf0b99068a07a7d 194783fc9b
Author: Matt Riedemann <email address hidden>
Date: Tue Jun 10 08:07:03 2014 -0700
Handle string types for InstanceActionEvent exc_tb serialization
Commit 59a6cf233b538d6 666740de4796fce 25ed8265aa added code to handle
serializing non-str exception traceback objects, but didn't account for
unicode. This change uses six.string_types to handle str and unicode
objects for the exc_tb argument.
Adds a new unit test for the unicode case and firms up two existing
tests for how traceback.format_tb is mocked (or shouldn't be in the case
of exc_tb being a str).
Closes-Bug: #1327476
Change-Id: Icc10b62a3f6561 0c50e86c0b366c2 b70b1a0932d