Fixed typo 'must by' to 'must be' (#82769)

pull/80787/head^2
Orion Poplawski 3 months ago committed by GitHub
parent 8750a1f9ac
commit 38006103dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -347,7 +347,7 @@ def _list_no_log_values(argument_spec, params):
sub_param = check_type_dict(sub_param)
if not isinstance(sub_param, Mapping):
raise TypeError("Value '{1}' in the sub parameter field '{0}' must by a {2}, "
raise TypeError("Value '{1}' in the sub parameter field '{0}' must be a {2}, "
"not '{1.__class__.__name__}'".format(arg_name, sub_param, wanted_type))
no_log_values.update(_list_no_log_values(sub_argument_spec, sub_param))

@ -78,7 +78,7 @@ def test_list_no_log_values_invalid_suboptions(argument_spec, module_parameters,
}
}
with pytest.raises(TypeError, match=r"(Value '.*?' in the sub parameter field '.*?' must by a dict, not '.*?')"
with pytest.raises(TypeError, match=r"(Value '.*?' in the sub parameter field '.*?' must be a dict, not '.*?')"
r"|(dictionary requested, could not parse JSON or key=value)"):
_list_no_log_values(argument_spec(extra_opts), module_parameters(extra_params))

Loading…
Cancel
Save