mirror of
https://github.com/OpenKMIP/PyKMIP.git
synced 2025-06-27 17:24:24 +02:00
fix activate uid none check
This commit is contained in:
parent
1a8a31af49
commit
eda50d657a
@ -506,7 +506,7 @@ class ProxyKmipClient(api.KmipClient):
|
|||||||
message = result.result_message.value
|
message = result.result_message.value
|
||||||
raise exceptions.KmipOperationFailure(status, reason, message)
|
raise exceptions.KmipOperationFailure(status, reason, message)
|
||||||
|
|
||||||
def activate(self, uid):
|
def activate(self, uid=None):
|
||||||
"""
|
"""
|
||||||
Activate a managed object stored by a KMIP appliance.
|
Activate a managed object stored by a KMIP appliance.
|
||||||
|
|
||||||
@ -522,6 +522,7 @@ class ProxyKmipClient(api.KmipClient):
|
|||||||
TypeError: if the input argument is invalid
|
TypeError: if the input argument is invalid
|
||||||
"""
|
"""
|
||||||
# Check input
|
# Check input
|
||||||
|
if uid is not None:
|
||||||
if not isinstance(uid, six.string_types):
|
if not isinstance(uid, six.string_types):
|
||||||
raise TypeError("uid must be a string")
|
raise TypeError("uid must be a string")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user