fix compromise_occurrence_date None handling in pie revoke

This commit is contained in:
Hao Shen 2017-04-25 13:13:31 -07:00
parent 74075d502c
commit ac6e117676
1 changed files with 3 additions and 4 deletions

View File

@ -583,10 +583,9 @@ class ProxyKmipClient(api.KmipClient):
if not isinstance(compromise_occurrence_date, six.integer_types):
raise TypeError(
"compromise_occurrence_date must be an integer")
compromise_occurrence_date = primitives.DateTime(
compromise_occurrence_date,
enums.Tags.COMPROMISE_OCCURRENCE_DATE)
compromise_occurrence_date = primitives.DateTime(
compromise_occurrence_date,
enums.Tags.COMPROMISE_OCCURRENCE_DATE)
# Verify that operations can be given at this time
if not self._is_open: