Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
russoz committed Jan 20, 2025
1 parent 2690174 commit 115e6f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/module_utils/mh/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ def __init__(self, module=None):

# in 12.0.0 remove this if statement entirely
if hasattr(self, 'debug'):
self.deprecate(
f"This class ({cls}) has an attribute 'debug' defined and that is deprecated. "
msg = (
"This class ({cls}) has an attribute 'debug' defined and that is deprecated. "
"Method 'debug' will be an integral part of ModuleHelper in community.general "
"12.0.0, delegated to the underlying AnsibleModule object. "
"Please rename the existing attribute to prevent this message from showing.".format(cls=self.__class__.__name__),
version="12.0.0", collection="community.general"
"Please rename the existing attribute to prevent this message from showing.".format(cls=self.__class__.__name__)
)
self.deprecate(msg, version="12.0.0", collection_name="community.general")
else:
self._delegated_to_module = self._delegated_to_module + ('debug',)

Expand Down

0 comments on commit 115e6f7

Please sign in to comment.