Remove deprecation for TRANSFORM_INVALID_GROUP_CHARS (#66650)
Fixes #61889
This commit is contained in:
parent
cdaf7da11a
commit
6086ea62ee
2 changed files with 2 additions and 6 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- Remove the deprecation message for the ``TRANSFORM_INVALID_GROUP_CHARS`` setting. (https://github.com/ansible/ansible/issues/61889)
|
|
@ -48,12 +48,6 @@ def to_safe_group_name(name, replacer="_", force=False, silent=False):
|
||||||
warn = True
|
warn = True
|
||||||
warn = 'Invalid characters were found in group names but not replaced, use -vvvv to see details'
|
warn = 'Invalid characters were found in group names but not replaced, use -vvvv to see details'
|
||||||
|
|
||||||
# remove this message after 2.10 AND changing the default to 'always'
|
|
||||||
group_chars_setting, group_chars_origin = C.config.get_config_value_and_origin('TRANSFORM_INVALID_GROUP_CHARS')
|
|
||||||
if group_chars_origin == 'default':
|
|
||||||
display.deprecated('The TRANSFORM_INVALID_GROUP_CHARS settings is set to allow bad characters in group names by default,'
|
|
||||||
' this will change, but still be user configurable on deprecation', version='2.10')
|
|
||||||
|
|
||||||
if warn:
|
if warn:
|
||||||
display.warning(warn)
|
display.warning(warn)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue