diff options
author | Brian Coca <brian.coca+git@gmail.com> | 2016-01-15 15:00:40 -0500 |
---|---|---|
committer | Brian Coca <brian.coca+git@gmail.com> | 2016-01-15 15:01:36 -0500 |
commit | 7a0b4882449f1c9730425f0055f9a1e664e7d13b (patch) | |
tree | 36308a3d06a1ca18d452cad216238a5e626507d2 | |
parent | 81e4042fa4ab6ff67a5863883db00bbf9c1438a1 (diff) | |
download | ansible-modules-core-7a0b4882449f1c9730425f0055f9a1e664e7d13b.tar.gz |
reverse order of cron commands
does not affect linux but fixes issue with busybox caring about order
fixes #2807
-rw-r--r-- | system/cron.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/cron.py b/system/cron.py index c9023845..28fe8a7c 100644 --- a/system/cron.py +++ b/system/cron.py @@ -383,7 +383,7 @@ class CronTab(object): return "chown %s %s ; su '%s' -c '%s %s'" % (pipes.quote(self.user), pipes.quote(path), pipes.quote(self.user), CRONCMD, pipes.quote(path)) else: user = '-u %s' % pipes.quote(self.user) - return "%s %s %s" % (CRONCMD , user, pipes.quote(path)) + return "%s %s %s" % (CRONCMD , pipes.quote(path), user) |