2
0
mirror of https://github.com/openkmip/pykmip synced 2025-12-15 15:53:36 +00:00

Add ApplicationSpecificInformation support to the server

This change adds ApplicationSpecificInformation attribute support
to the server, allowing for the storage and retrieval of the new
attribute in addition to object filtering based on its value. New
unit tests have been added to cover the new changes.
This commit is contained in:
Peter Hamilton
2019-10-03 15:34:38 -04:00
committed by Peter Hamilton
parent 3f84a20a0c
commit 01eb144243
7 changed files with 238 additions and 29 deletions

View File

@@ -1248,10 +1248,10 @@ class ApplicationSpecificInformation(primitives.Struct):
def __str__(self):
value = ", ".join(
[
'"application_namespace": {}'.format(
'"application_namespace": "{}"'.format(
self.application_namespace
),
'"application_data": {}'.format(self.application_data)
'"application_data": "{}"'.format(self.application_data)
]
)
return "{" + value + "}"