Merge pull request #284 from vbnmmnbv/revoke_pie

fix compromise_occurrence_date None handling in pie revoke
This commit is contained in:
Peter Hamilton 2017-04-27 19:48:27 -04:00 committed by GitHub
commit e591873bf4
1 changed files with 3 additions and 4 deletions

View File

@ -595,10 +595,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: