2
0
mirror of https://github.com/openkmip/pykmip synced 2025-12-05 23:53:19 +00:00

Update the ProtocolVersion implementation

This change updates the implementation of the ProtocolVersion
struct, bringing it inline with the current struct style. All
uses of the struct have been updated to reflect these changes,
as have the struct unit tests.
This commit is contained in:
Peter Hamilton
2018-02-22 13:35:11 -05:00
parent 4df9273bae
commit dd4a078cc1
14 changed files with 557 additions and 427 deletions

View File

@@ -176,7 +176,7 @@ class KmipSession(threading.Thread):
self._logger.warning("Failure parsing request message.")
self._logger.exception(e)
response = self._engine.build_error_response(
contents.ProtocolVersion.create(1, 0),
contents.ProtocolVersion(1, 0),
enums.ResultReason.INVALID_MESSAGE,
"Error parsing request message. See server logs for more "
"information."