mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
fixed first_available_found for template, refactored into common function
added deprecation warning fixed display.deprecated to make version optional (code already assumed this) turned warning + 'deprecated' in plugin loader into actual call to deprecated()
This commit is contained in:
@@ -250,8 +250,7 @@ class PluginLoader:
|
||||
if alias_name in self._plugin_path_cache:
|
||||
if not os.path.islink(self._plugin_path_cache[alias_name]):
|
||||
d = Display()
|
||||
d.warning('%s has been deprecated, which means '
|
||||
'it is kept for backwards compatibility '
|
||||
d.deprecated('%s is kept for backwards compatibility '
|
||||
'but usage is discouraged. The module '
|
||||
'documentation details page may explain '
|
||||
'more about this rationale.' %
|
||||
|
||||
Reference in New Issue
Block a user