Skip to content

Commit 936b264

Browse files
committed
minor bugfixes for tpp retire
1 parent b9a98ef commit 936b264

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

vcert/connection_tpp_abstract.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,7 @@ def get_certificate_guid_from_dn(self, cert_dn):
11211121
self.ARG_DATA: request_data
11221122
}
11231123
status, response = self.post(args)
1124-
cert_guid = response(['GUID'])
1124+
cert_guid = response['GUID']
11251125
return cert_guid
11261126

11271127
def get_certificate_dn_from_guid(self, cert_guid):
@@ -1133,6 +1133,6 @@ def get_certificate_dn_from_guid(self, cert_guid):
11331133
self.ARG_DATA: request_data
11341134
}
11351135
status, response = self.post(args)
1136-
cert_dn = response(['ObjectDN'])
1136+
cert_dn = response['ObjectDN']
11371137
return cert_dn
11381138

vcert/connection_tpp_token.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def put(self, args):
9696
check_token = args[self.ARG_CHECK_TOKEN] if self.ARG_CHECK_TOKEN in args else True
9797
include_token_header = args[self.ARG_INCLUDE_TOKEN_HEADER] if self.ARG_INCLUDE_TOKEN_HEADER in args else True
9898

99-
return self._post(url=url, data=data, check_token=check_token, include_token_header=include_token_header)
99+
return self._put(url=url, data=data, check_token=check_token, include_token_header=include_token_header)
100100

101101
def _get(self, url=None, params=None, check_token=True, include_token_header=True):
102102
if check_token:

0 commit comments

Comments
 (0)