Fix exit codes for role search and delete. Fixes #78516 (#78578)

pull/78586/head
Matt Martz 2 years ago committed by GitHub
parent 1e6730aec4
commit 4c8b8a06be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,3 @@
bugfixes:
- ansible-galaxy - Fix exit codes for role search and delete
(https://github.com/ansible/ansible/issues/78516)

@ -1701,7 +1701,7 @@ class GalaxyCLI(CLI):
if response['count'] == 0:
display.display("No roles match your search.", color=C.COLOR_ERROR)
return True
return 1
data = [u'']
@ -1724,7 +1724,7 @@ class GalaxyCLI(CLI):
data = u'\n'.join(data)
self.pager(data)
return True
return 0
def execute_import(self):
""" used to import a role into Ansible Galaxy """
@ -1830,7 +1830,7 @@ class GalaxyCLI(CLI):
display.display(resp['status'])
return True
return 0
def main(args=None):

Loading…
Cancel
Save