Skip to content

Commit 892c045

Browse files
committed
rebase
1 parent 793518b commit 892c045

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

plugins/modules/synchronize.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,6 @@ def main():
448448
delay_updates=dict(type='bool', default=True),
449449
mode=dict(type='str', default='push', choices=['pull', 'push']),
450450
link_dest=dict(type='list', elements='path'),
451-
link_dest=dict(type='list', elements='str'),
452451
quiet=dict(type='bool', default=False)
453452
),
454453
supports_check_mode=True,

tests/integration/targets/synchronize/tasks/main.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,35 @@
339339
- stat_result_b.stat.exists == True
340340
- stat_result_b.stat.checksum == '2aae6c35c94fcfb415dbe95f408b9ce91ee846ed'
341341

342+
- name: synchronize files with quiet option
343+
synchronize:
344+
src: '{{ output_dir }}/foo.txt'
345+
dest: '{{ output_dir }}/foo.result'
346+
quiet: true
347+
register: sync_result
348+
349+
- assert:
350+
that:
351+
- '''files/directories have been synchronized'' in sync_result.msg'
352+
353+
- name: Cleanup
354+
file:
355+
state: absent
356+
path: '{{ output_dir }}/{{ item }}'
357+
loop:
358+
- foo.result
359+
- bar.result
360+
361+
- name: synchronize files without quiet option
362+
synchronize:
363+
src: '{{ output_dir }}/foo.txt'
364+
dest: '{{ output_dir }}/foo.result'
365+
register: sync_result
366+
367+
- assert:
368+
that:
369+
- '''files/directories have been synchronized'' not in sync_result.msg'
370+
342371
- name: Cleanup
343372
ansible.builtin.file:
344373
state: absent

0 commit comments

Comments
 (0)