Skip to content

Commit e7cb2c6

Browse files
authored
Merge pull request #143 from Venafi/ruamel-upgrade
fix(ruamel): upgrades ruamel version on setup.py to 0.18.5
2 parents c5b198d + 41fd6a7 commit e7cb2c6

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
url="https://github.com/Venafi/vcert-python",
1616
packages=['vcert', 'vcert.parser', 'vcert.policy'],
1717
install_requires=['requests==2.31.0', 'python-dateutil==2.8.2', 'certvalidator<=0.11.1', 'six==1.16.0',
18-
'cryptography==42.0.2', 'ruamel.yaml==0.17.31', 'pynacl==1.5.0'],
18+
'cryptography==42.0.2', 'ruamel.yaml==0.18.5', 'pynacl==1.5.0'],
1919
description='Python client library for Venafi Trust Protection Platform and Venafi Cloud.',
2020
long_description=long_description,
2121
long_description_content_type="text/markdown",
@@ -27,5 +27,4 @@
2727
'Programming Language :: Python :: 3.10',
2828
'Operating System :: OS Independent',
2929
"License :: OSI Approved :: Apache Software License",
30-
])
31-
30+
])

vcert/connection_tpp_abstract.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,17 +331,21 @@ def renew_cert(self, request, reuse_key=False):
331331
def revoke_cert(self, request):
332332
if not (request.id or request.thumbprint):
333333
raise ClientBadData
334+
334335
d = {
335336
'Disable': request.disable
336337
}
337338
if request.reason:
338339
d['Reason'] = request.reason
340+
if request.comments:
341+
d['Comments'] = request.comments
339342
if request.id:
340343
d['CertificateDN'] = request.id
341344
elif request.thumbprint:
342345
d['Thumbprint'] = request.thumbprint
343346
else:
344347
raise ClientBadData
348+
345349
# TODO: Change _post() with post(args)
346350
status, data = self._post(URLS.CERTIFICATE_REVOKE, data=d)
347351
if status in (HTTPStatus.OK, HTTPStatus.ACCEPTED):

0 commit comments

Comments
 (0)