3
changelogs/fragments/78516-galaxy-cli-exit-codes.yml
Normal file
3
changelogs/fragments/78516-galaxy-cli-exit-codes.yml
Normal file
@ -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):
|
||||
|
||||
Reference in New Issue
Block a user