mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Merge pull request #7939 from PinGwynn/feature
portage: Successful exit if sync=yes and no package provided
This commit is contained in:
@@ -362,7 +362,7 @@ def main():
|
||||
if p['sync']:
|
||||
sync_repositories(module, webrsync=(p['sync'] == 'web'))
|
||||
if not p['package']:
|
||||
return
|
||||
module.exit_json(msg='Sync successfully finished.')
|
||||
|
||||
packages = p['package'].split(',') if p['package'] else []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user