Successfull exit if sync=yes and no package provided

This commit is contained in:
Maxim Odinintsev 2014-06-26 15:02:15 +03:00
parent a58912773d
commit 82c026387f

View file

@ -362,7 +362,7 @@ def main():
if p['sync']:
sync_repositories(module, webrsync=(p['sync'] == 'web'))
if not p['package']:
module.exit_json(msg='Sync successfuly finished.')
module.exit_json(msg='Sync successfully finished.')
packages = p['package'].split(',') if p['package'] else []