mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +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:
@@ -111,7 +111,7 @@ class Display:
|
||||
else:
|
||||
self.display("<%s> %s" % (host, msg), color='blue', screen_only=True)
|
||||
|
||||
def deprecated(self, msg, version, removed=False):
|
||||
def deprecated(self, msg, version=None, removed=False):
|
||||
''' used to print out a deprecation message.'''
|
||||
|
||||
if not removed and not C.DEPRECATION_WARNINGS:
|
||||
|
||||
Reference in New Issue
Block a user