Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ansible/ansible.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSloane Hertel <19572925+s-hertel@users.noreply.github.com>2022-10-25 19:00:56 +0300
committerGitHub <noreply@github.com>2022-10-25 19:00:56 +0300
commitda3a7618baa500899d11bb9a80863fdb1f80e3f1 (patch)
tree381d7bd4a9ed76adfd3cbff21ac95a0bfcd756f6 /changelogs
parentf3f7d442389208ed5b249902c01d7d888f7c0546 (diff)
give a warning when no roles match the search instead of returning rc 1 (#79195)
* give a warning when no roles match the search instead of returning rc 1 * porting guide note * Update docs/docsite/rst/porting_guides/porting_guide_core_2.15.rst Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
Diffstat (limited to 'changelogs')
-rw-r--r--changelogs/fragments/ansible-galaxy-role-search-rc.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/changelogs/fragments/ansible-galaxy-role-search-rc.yml b/changelogs/fragments/ansible-galaxy-role-search-rc.yml
new file mode 100644
index 00000000000..a104f94865e
--- /dev/null
+++ b/changelogs/fragments/ansible-galaxy-role-search-rc.yml
@@ -0,0 +1,4 @@
+bugfixes:
+ - >-
+ ``ansible-galaxy search rolename`` - give a warning instead of non-zero return code when search results are empty.
+ This is similar to the behavior when listing roles, which gives a warning if a role cannot be found and exits with a return code of ``0``.