Merge pull request #268 from vbnmmnbv/activate_pie

fix activate uid none check
This commit is contained in:
Peter Hamilton 2017-03-29 23:40:51 -04:00 committed by GitHub
commit 2aabad714a
1 changed files with 4 additions and 3 deletions

View File

@ -506,7 +506,7 @@ class ProxyKmipClient(api.KmipClient):
message = result.result_message.value
raise exceptions.KmipOperationFailure(status, reason, message)
def activate(self, uid):
def activate(self, uid=None):
"""
Activate a managed object stored by a KMIP appliance.
@ -522,6 +522,7 @@ class ProxyKmipClient(api.KmipClient):
TypeError: if the input argument is invalid
"""
# Check input
if uid is not None:
if not isinstance(uid, six.string_types):
raise TypeError("uid must be a string")