From 7ef81a8d483585bec275760471e820029bfdf18b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Str=C3=B6der?= Date: Wed, 12 Aug 2020 12:43:25 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/ansible?expand=0&rev=193 --- fix-cron-regression-71207.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 fix-cron-regression-71207.patch diff --git a/fix-cron-regression-71207.patch b/fix-cron-regression-71207.patch new file mode 100644 index 0000000..71c6694 --- /dev/null +++ b/fix-cron-regression-71207.patch @@ -0,0 +1,11 @@ +diff -ur ansible-2.9.12.orig/lib/ansible/modules/system/cron.py ansible-2.9.12/lib/ansible/modules/system/cron.py +--- ansible-2.9.12.orig/lib/ansible/modules/system/cron.py 2020-08-11 05:22:08.000000000 +0200 ++++ ansible-2.9.12/lib/ansible/modules/system/cron.py 2020-08-12 14:42:34.519669206 +0200 +@@ -258,6 +258,7 @@ + try: + f = open(self.b_cron_file, 'rb') + self.n_existing = to_native(f.read(), errors='surrogate_or_strict') ++ self.lines = self.n_existing.splitlines() + f.close() + except IOError: + # cron file does not exist