diff options
author | Dag Wieers <dag@wieers.com> | 2016-06-10 17:45:49 +0200 |
---|---|---|
committer | Brian Coca <bcoca@ansible.com> | 2016-06-10 11:45:49 -0400 |
commit | c14d4755e6a33fdd5a7f581b0e22844d9a710d1b (patch) | |
tree | e854ab1ee0b85b57021c09262ada725e24d846ae | |
parent | 3f7a935932c888d624cf8e6bb4a3ccf300b9345f (diff) | |
download | ansible-modules-core-c14d4755e6a33fdd5a7f581b0e22844d9a710d1b.tar.gz |
Adapt module to use new module._name property (#3918)
This is in line with the change from ansible/ansible#16087
-rw-r--r-- | utilities/helper/accelerate.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utilities/helper/accelerate.py b/utilities/helper/accelerate.py index 074f1d17..ae9147a6 100644 --- a/utilities/helper/accelerate.py +++ b/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']) |