1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Correct config manager deprecation warning

This commit is contained in:
Ryan Fitzpatrick 2017-08-16 10:24:50 -04:00 committed by Brian Coca
parent b818e986b6
commit b905a349ac

View file

@ -365,4 +365,5 @@ class ConfigManager(object):
sys.stderr.write("Unable to set correct type for:\n\t%s\n" % '\n\t'.join(self.UNABLE))
if self.DEPRECATED:
for k, reason in self.DEPRECATED:
sys.stderr.write("[DEPRECATED] %s: %(why)s. It will be removed in %(version)s. As alternative %(alternative)s", (k, reason))
sys.stderr.write("[DEPRECATED] %(k)s: %(why)s. It will be removed in %(version)s. As alternative use one of [%(alternatives)s]\n"
% dict(k=k, **reason))