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

add original

This commit is contained in:
locula
2023-06-14 11:04:16 -04:00
committed by arp102
parent fc5917365b
commit 1a0f63af61

View File

@@ -114,6 +114,8 @@ class AttributeValueFactory(object):
return primitives.Boolean(value, enums.Tags.NEVER_EXTRACTABLE)
elif name is enums.AttributeType.CUSTOM_ATTRIBUTE:
return attributes.CustomAttribute(value)
elif name is enums.AttributeType.ORIGINAL_CREATION_DATE:
return primitives.DateTime(value, enums.Tags.ORIGINAL_CREATION_DATE)
else:
if not isinstance(name, str):
raise ValueError('Unrecognized attribute type: '