[stable-2.13] Fix exit codes for role search and delete. Fixes #78516 (#78578) (#78583)

(cherry picked from commit 4c8b8a0)

Co-authored-by: Matt Martz <matt@sivel.net>
pull/78687/head
Matt Martz 3 years ago committed by GitHub
parent 1cef724544
commit 6b77033d63
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)

@ -1671,7 +1671,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'']
@ -1694,7 +1694,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 """
@ -1800,7 +1800,7 @@ class GalaxyCLI(CLI):
display.display(resp['status'])
return True
return 0
def main(args=None):

Loading…
Cancel
Save