From 339c4422502addfee78c2f8a8461cdd9002c48b1 Mon Sep 17 00:00:00 2001 From: Chris Holland <41524756+ChrisAHolland@users.noreply.github.com> Date: Tue, 28 Apr 2020 03:01:48 -0700 Subject: [PATCH] Added missing parameter (#69160) The call to daemonize() in sysvinit.py was missing the module parameter included in the function definition in service.py. This pull request simply adds that parameter, as the module is used for error handling in daemonize(). --- changelogs/fragments/69160-add-missing-parameter.yaml | 2 ++ lib/ansible/modules/system/sysvinit.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/69160-add-missing-parameter.yaml diff --git a/changelogs/fragments/69160-add-missing-parameter.yaml b/changelogs/fragments/69160-add-missing-parameter.yaml new file mode 100644 index 00000000000..5fe97fb4eb8 --- /dev/null +++ b/changelogs/fragments/69160-add-missing-parameter.yaml @@ -0,0 +1,2 @@ +bugfixes: +- sysvinit - Add missing parameter ``module`` in call to ``daemonize()``. diff --git a/lib/ansible/modules/system/sysvinit.py b/lib/ansible/modules/system/sysvinit.py index 6df5c1fd38e..ecd0e8c2f8c 100644 --- a/lib/ansible/modules/system/sysvinit.py +++ b/lib/ansible/modules/system/sysvinit.py @@ -306,7 +306,7 @@ def main(): # how to run if module.params['daemonize']: - (rc, out, err) = daemonize(cmd) + (rc, out, err) = daemonize(module, cmd) else: (rc, out, err) = module.run_command(cmd) # FIXME: ERRORS