diff --git a/plugins/module_utils/common/params_validate.py b/plugins/module_utils/common/params_validate.py index f5ef4ad1d..63cf89c7a 100644 --- a/plugins/module_utils/common/params_validate.py +++ b/plugins/module_utils/common/params_validate.py @@ -75,7 +75,7 @@ class ParamsValidate: """ def __init__(self, ansible_module): - self.class_name = __class__.__name__ + self.class_name = self.__class__.__name__ self.ansible_module = ansible_module self.validation = validation self.file_handle = None diff --git a/plugins/module_utils/image_mgmt/image_upgrade_common.py b/plugins/module_utils/image_mgmt/image_upgrade_common.py index e986e5f50..013494149 100644 --- a/plugins/module_utils/image_mgmt/image_upgrade_common.py +++ b/plugins/module_utils/image_mgmt/image_upgrade_common.py @@ -35,7 +35,7 @@ def __init__(self, module): """ def __init__(self, module): - self.class_name = __class__.__name__ + self.class_name = self.__class__.__name__ self.method_name = inspect.stack()[0][3] self.module = module