Skip to content

Commit 8ed2cb1

Browse files
committed
Fix tests
1 parent f198e25 commit 8ed2cb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reportportal_client/core/rp_responses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def get_field(name: str, json: Optional[Any]) -> Optional[str]:
5858
if name not in json:
5959
logger.warning(f"Unable to get '{name}' from json: {str(json)}")
6060
return None
61-
result_id = json["id"]
61+
result_id = json[name]
6262
if result_id is None:
6363
logger.warning(f"Unable to get '{name}' from json: {str(json)}")
6464
return result_id

0 commit comments

Comments
 (0)