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

This commit is contained in:
Sloane Hertel
2023-10-02 09:11:12 -07:00
committed by GitHub
parent a82dc06116
commit 7fab552563
2 changed files with 5 additions and 0 deletions
@@ -0,0 +1,2 @@
bugfixes:
- ansible-galaxy info - fix reporting no role found when lookup_role_by_name returns None.
+3
View File
@@ -1265,6 +1265,9 @@ class GalaxyCLI(CLI):
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