Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix reporting role as not found when remote_data is None #81829

Merged
merged 2 commits into from Oct 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -0,0 +1,2 @@
bugfixes:
- ansible-galaxy info - fix reporting no role found when lookup_role_by_name returns None.
3 changes: 3 additions & 0 deletions lib/ansible/cli/galaxy.py
Expand Up @@ -1265,6 +1265,9 @@ def execute_info(self):

if remote_data:
role_info.update(remote_data)
else:
data = u"- the role %s was not found" % role
break

elif context.CLIARGS['offline'] and not gr._exists:
data = u"- the role %s was not found" % role
Expand Down