From 6bcf88ef54f232609e084ba02c9d8b393c75a163 Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Fri, 10 Jun 2016 17:45:49 +0200 Subject: [PATCH] Adapt module to use new module._name property (#3918) This is in line with the change from ansible/ansible#16087 --- lib/ansible/modules/utilities/helper/accelerate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/utilities/helper/accelerate.py b/lib/ansible/modules/utilities/helper/accelerate.py index 074f1d173b2..ae9147a6d09 100644 --- a/lib/ansible/modules/utilities/helper/accelerate.py +++ b/lib/ansible/modules/utilities/helper/accelerate.py @@ -105,8 +105,6 @@ from threading import Thread, Lock # we must import this here at the top so we can use get_module_path() from ansible.module_utils.basic import * -syslog.openlog('ansible-%s' % os.path.basename(__file__)) - # the chunk size to read and send, assuming mtu 1500 and # leaving room for base64 (+33%) encoding and header (100 bytes) # 4 * (975/3) + 100 = 1400 @@ -667,6 +665,8 @@ def main(): supports_check_mode=True ) + syslog.openlog('ansible-%s' % module._name) + password = base64.b64decode(module.params['password']) port = int(module.params['port']) timeout = int(module.params['timeout'])