Skip to content

Commit

Permalink
Fixes for Undefined variable '__class__' pylint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
allenrobel committed Dec 22, 2023
1 parent bf09150 commit eacfef4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/module_utils/common/params_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugins/module_utils/image_mgmt/image_upgrade_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eacfef4

Please sign in to comment.