|
|
@ -137,15 +137,15 @@ def list_deprecations(argument_spec, params, prefix=''):
|
|
|
|
sub_prefix = '%s["%s"]' % (prefix, arg_name)
|
|
|
|
sub_prefix = '%s["%s"]' % (prefix, arg_name)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
sub_prefix = arg_name
|
|
|
|
sub_prefix = arg_name
|
|
|
|
if arg_opts.get('removed_in_version') is not None:
|
|
|
|
if arg_opts.get('removed_at_date') is not None:
|
|
|
|
deprecations.append({
|
|
|
|
deprecations.append({
|
|
|
|
'msg': "Param '%s' is deprecated. See the module docs for more information" % sub_prefix,
|
|
|
|
'msg': "Param '%s' is deprecated. See the module docs for more information" % sub_prefix,
|
|
|
|
'version': arg_opts.get('removed_in_version')
|
|
|
|
'date': arg_opts.get('removed_at_date')
|
|
|
|
})
|
|
|
|
})
|
|
|
|
if arg_opts.get('removed_at_date') is not None:
|
|
|
|
elif arg_opts.get('removed_in_version') is not None:
|
|
|
|
deprecations.append({
|
|
|
|
deprecations.append({
|
|
|
|
'msg': "Param '%s' is deprecated. See the module docs for more information" % sub_prefix,
|
|
|
|
'msg': "Param '%s' is deprecated. See the module docs for more information" % sub_prefix,
|
|
|
|
'date': arg_opts.get('removed_at_date')
|
|
|
|
'version': arg_opts.get('removed_in_version')
|
|
|
|
})
|
|
|
|
})
|
|
|
|
# Check sub-argument spec
|
|
|
|
# Check sub-argument spec
|
|
|
|
sub_argument_spec = arg_opts.get('options')
|
|
|
|
sub_argument_spec = arg_opts.get('options')
|
|
|
|