From 793518be3c4eb63aecdd0a6854429e326e0fa470 Mon Sep 17 00:00:00 2001 From: Mandar Kulkarni Date: Thu, 5 Aug 2021 16:15:45 -0700 Subject: [PATCH] Modify based on feedback --- plugins/modules/synchronize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/synchronize.py b/plugins/modules/synchronize.py index 54065f3..e651e5c 100644 --- a/plugins/modules/synchronize.py +++ b/plugins/modules/synchronize.py @@ -654,7 +654,7 @@ def main(): result = dict(changed=changed, rc=rc, cmd=cmdstr, stdout_lines=out_lines, msg=out_clean) if quiet: - changes = len(out_lines) - 1 if len(out_lines) >= 1 else 0 + changes = out.count(changed_marker) if changed else 0 result['msg'] = "%s files/directories have been synchronized" % changes if module._diff: