module_utils: implement deprecation warning for params (#20884)

* module_utils: implement deprecation warning for params

* rename deprecated_version to removed_in_version

* fix pep8 E121
This commit is contained in:
René Moser
2017-02-01 19:00:22 +01:00
committed by Brian Coca
parent e401b4e424
commit 541a51ddf7
2 changed files with 15 additions and 7 deletions

View File

@@ -105,7 +105,7 @@ class CallbackBase:
self._display.warning(warning)
if 'deprecations' in res and res['deprecations']:
for warning in res['deprecations']:
self._display.deprecated(warning)
self._display.deprecated(**warning)
def _get_diff(self, difflist):