From dc68a28cedf8156de91cef630c774dad4d9c1b6b Mon Sep 17 00:00:00 2001 From: Shatakshi Mishra Date: Wed, 3 Jul 2024 12:49:46 +0530 Subject: [PATCH] Exit when image is invalid (#1810) --- src/ansible_navigator/cli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ansible_navigator/cli.py b/src/ansible_navigator/cli.py index 0fac9e793..c05c33751 100644 --- a/src/ansible_navigator/cli.py +++ b/src/ansible_navigator/cli.py @@ -117,6 +117,8 @@ def pull_image(args: Any) -> None: if image_puller.assessment.pull_required: image_puller.prologue_stdout() image_puller.pull_stdout() + if image_puller.assessment.exit_messages: + error_and_exit_early(image_puller.assessment.exit_messages) def run(args: ApplicationConfiguration) -> ActionReturn: