Skip to content

Commit 06334d1

Browse files
committed
cleanup
1 parent 8b37075 commit 06334d1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/shared/clients/jit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def add_teams_to_asset(token, asset: Asset, teams: List[str]):
157157
}
158158
response = requests.patch(url, json=payload, headers=headers)
159159
if response.status_code == 200:
160-
logger.info(f"Teams added to asset '{asset.asset_id}' successfully.")
160+
logger.info(f"Teams added to asset '{asset.asset_name}' successfully.")
161161
else:
162162
logger.error(f"Failed to add teams to asset '{asset.asset_id}'. Status code: "
163163
f"{response.status_code}, {response.text}")

tests/shared/test_clients.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def test_add_teams_to_asset(mocker, status_code, expected_result):
184184
add_teams_to_asset("test_token", asset, teams)
185185

186186
if status_code == 200:
187-
mock_logger_info.assert_called_once_with("Teams added to asset 'asset_id' successfully.")
187+
mock_logger_info.assert_called_once_with("Teams added to asset 'asset_name' successfully.")
188188
else:
189189
mock_logger_error.assert_called_once_with(expected_result.format(mock_response.text))
190190

0 commit comments

Comments
 (0)