2
0
mirror of https://github.com/openkmip/pykmip synced 2026-01-04 09:33:37 +00:00

Fixing stringent uid value checks in the ProxyKmipClient

This change loosens the input requirements for ProxyKmipClient
operations that accept a secret UID. Operations like Get and
Destroy used to require a string value but are allowed in the
KMIP specification to take no value at all. This change updates
the ProxyKmipClient to properly reflect the specification. The
underlying KMIPProxy client is mostly unchanged.

Closes #261
This commit is contained in:
Peter Hamilton
2017-02-10 11:40:40 -05:00
parent 0faf1e5f43
commit fae811528b
2 changed files with 9 additions and 7 deletions

View File

@@ -357,7 +357,7 @@ class KMIPProxy(KMIP):
revocation_message=message,
credential=credential)
def destroy(self, uuid, credential=None):
def destroy(self, uuid=None, credential=None):
return self._destroy(unique_identifier=uuid,
credential=credential)