mirror of
https://github.com/openkmip/pykmip
synced 2025-12-30 07:03:29 +00:00
Updating the attribute value factory to support ObjectType values
This change updates the attribute value factory to allow for the creation of ObjectType attributes with values provided by the caller. Unit tests have been added to cover this change.
This commit is contained in:
@@ -28,7 +28,7 @@ class AttributeValueFactory(object):
|
||||
elif name is enums.AttributeType.NAME:
|
||||
return self._create_name(value)
|
||||
elif name is enums.AttributeType.OBJECT_TYPE:
|
||||
return attributes.ObjectType()
|
||||
return attributes.ObjectType(value)
|
||||
elif name is enums.AttributeType.CRYPTOGRAPHIC_ALGORITHM:
|
||||
return attributes.CryptographicAlgorithm(value)
|
||||
elif name is enums.AttributeType.CRYPTOGRAPHIC_LENGTH:
|
||||
|
||||
Reference in New Issue
Block a user