From cea1acf1462a323dea976ecfa0b1a9e403b4e31b Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 29 Nov 2016 12:44:12 -0500 Subject: [PATCH] initialize module name removing verbosity exposed missing name at certain stages, initialize to file name and update later once module args are parsed --- lib/ansible/module_utils/basic.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/module_utils/basic.py b/lib/ansible/module_utils/basic.py index c5d0e30dab2..3c31d0c68b8 100644 --- a/lib/ansible/module_utils/basic.py +++ b/lib/ansible/module_utils/basic.py @@ -672,6 +672,7 @@ class AnsibleModule(object): see library/* for examples ''' + self._name = os.path.basename(__file__) #initialize name until we can parse from options self.argument_spec = argument_spec self.supports_check_mode = supports_check_mode self.check_mode = False