Fix keyerror with synchronize
Apparently we may need to initialize the option if it isn't present. Change-Id: I4a9f4f2ace3aeb914feba868e2ac8a86223232be
This commit is contained in:
parent
b2fc375704
commit
877897dc1a
|
@ -26,6 +26,8 @@ class ActionModule(synchronize.ActionModule):
|
|||
dest = self._task.args.get('dest', None)
|
||||
pull = self._task.args.get('pull', False)
|
||||
|
||||
if 'rsync_opts' not in self._task.args:
|
||||
self._task.args['rsync_opts'] = []
|
||||
if '--safe-links' not in self._task.args['rsync_opts']:
|
||||
self._task.args['rsync_opts'].append('--safe-links')
|
||||
|
||||
|
|
Loading…
Reference in New Issue