mirror of
https://github.com/openkmip/pykmip
synced 2025-12-26 05:03:37 +00:00
create SecretData objects with custom attributes
This commit is contained in:
committed by
Peter Hamilton
parent
9403ff3d2a
commit
a9d15eb253
@@ -20,6 +20,7 @@ from kmip.core import enums
|
||||
from kmip.core import primitives
|
||||
from kmip.core import objects as cobjects
|
||||
|
||||
from kmip.core.objects import Attribute
|
||||
from kmip.core.factories import attributes
|
||||
|
||||
from kmip.core.attributes import CryptographicParameters
|
||||
@@ -557,6 +558,11 @@ class ProxyKmipClient(object):
|
||||
)
|
||||
object_attributes.append(name_attribute)
|
||||
|
||||
if hasattr(managed_object, '_application_specific_informations'):
|
||||
if managed_object._application_specific_informations:
|
||||
for attr in managed_object._application_specific_informations:
|
||||
object_attributes.append(attr)
|
||||
|
||||
template = cobjects.TemplateAttribute(attributes=object_attributes)
|
||||
object_type = managed_object.object_type
|
||||
|
||||
|
||||
Reference in New Issue
Block a user