Skip to content

Commit

Permalink
Allow images subcommand to display the resulting output in JSON format (
Browse files Browse the repository at this point in the history
#1872)

* Allow images subcommand to display the resulting output in JSON format

* fix codecov failure
  • Loading branch information
shatakshiiii authored Nov 13, 2024
1 parent c46ac3d commit 404feb5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ updates:
ignore:
# prevent ansible-core from being updated until test fixtures are updated
- dependency-name: ansible-core
- dependency-name: "codecov/codecov-action"
versions: ["4.6.0"]
groups:
dependencies:
patterns:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ jobs:
fi
- name: Upload coverage data
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v4.5.0
with:
name: ${{ matrix.name }}
fail_ci_if_error: true
Expand Down
2 changes: 1 addition & 1 deletion src/ansible_navigator/actions/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def run_stdout_details(self) -> RunStdoutReturn:
details["image_name"] = image_name
print_to_stdout(
content=details,
content_format=ContentFormat.YAML,
content_format=getattr(ContentFormat, self._args.format.upper()),
use_color=self._args.display_color,
)
return RunStdoutReturn(message="", return_code=0)
Expand Down

0 comments on commit 404feb5

Please sign in to comment.