Skip to content

Commit 73eaf0e

Browse files
no V002 workaround
Signed-off-by: Ramon Petgrave <[email protected]>
1 parent 4b2a03a commit 73eaf0e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

sigstore/_internal/rekor/client_v2.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,7 @@ def create_entry(self, request: v2.CreateEntryRequest) -> LogEntry: # type: ign
8181
# Or it is an issue with the proto `json_value`.
8282
# See https://github.com/sigstore/rekor-tiles/blob/bd5893730de581629a5f475923c663f776793496/api/proto/rekor_service.proto#L66.
8383
payload = request.to_dict()
84-
if "hashedRekordRequestV002" in payload:
85-
payload["hashedRekordRequestV0_0_2"] = payload.pop(
86-
"hashedRekordRequestV002"
87-
)
88-
if "dsseRequestV002" in payload:
89-
payload["dsseRequestV0_0_2"] = payload.pop("dsseRequestV002")
90-
_logger.debug(f"request: {json.dumps(payload)}")
84+
_logger.debug(f"proposed: {json.dumps(payload)}")
9185
resp = self.session.post(
9286
f"{self.url}/log/entries",
9387
json=payload,

0 commit comments

Comments
 (0)