now output works for both search and info

pull/11896/head
Brian Coca 9 years ago
parent a6c0661d21
commit e8157eab19

@ -42,7 +42,7 @@ from ansible.playbook.role.requirement import RoleRequirement
class GalaxyCLI(CLI):
VALID_ACTIONS = ("init", "info", "install", "list", "remove", "search")
SKIP_INFO_KEYS = ("name", "description", "readme_html", "related", "summary_fields", "average_aw_composite", "average_aw_score", "url", "src" )
SKIP_INFO_KEYS = ("name", "description", "readme_html", "related", "summary_fields", "average_aw_composite", "average_aw_score", "url" )
def __init__(self, args, display=None):
@ -184,7 +184,6 @@ class GalaxyCLI(CLI):
text = "\nRole: %s \n" % role_info['name']
text += "\tdescription: %s \n" % role_info['description']
text += "\tsrc: %s \n" % role_info['src']
for k in sorted(role_info.keys()):
@ -329,10 +328,9 @@ class GalaxyCLI(CLI):
role_info.update(role_spec)
data += self._display_role_info(role_info)
if data:
data += "\n- %s:" % (role)
else:
if not data:
data += "\n- the role %s was not found" % role
self.pager(data)
def execute_install(self):

Loading…
Cancel
Save