Skip to content

Commit

Permalink
rename revision key to rev
Browse files Browse the repository at this point in the history
  • Loading branch information
skshetry committed Mar 15, 2023
1 parent ae72414 commit ff11f9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dvc/commands/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def _show_json(renderers_with_errors: List["RendererWithErrors"], split=False):
errors.extend(
{
"name": name,
"revision": rev,
"rev": rev,
"source": source,
**encode_exception(e),
}
Expand All @@ -43,7 +43,7 @@ def _show_json(renderers_with_errors: List["RendererWithErrors"], split=False):
errors.extend(
{
"name": name,
"revision": rev,
"rev": rev,
**encode_exception(e),
}
for rev, e in def_errors.items()
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/plots/test_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def test_repo_with_removed_plots(tmp_dir, capsys, repo_with_plots):
{
"name": p,
"source": p,
"revision": "workspace",
"rev": "workspace",
"type": "FileNotFoundError",
"msg": "",
}
Expand Down

0 comments on commit ff11f9d

Please sign in to comment.