mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 04:40:22 -07:00
Move module_set_locale and module_lang back to global
These config settings are being deprecated so we don't want people to think they need to implement them for their new shell plugin.
This commit is contained in:
parent
62bc714dae
commit
b151f5d942
4 changed files with 35 additions and 36 deletions
|
@ -17,14 +17,14 @@ from ansible.module_utils.six import string_types
|
|||
from ansible.config.manager import ConfigManager, ensure_type, get_ini_config_value
|
||||
|
||||
|
||||
def _deprecated(msg):
|
||||
def _deprecated(msg, version='2.8'):
|
||||
''' display is not guaranteed here, nor it being the full class, but try anyways, fallback to sys.stderr.write '''
|
||||
try:
|
||||
from __main__ import display
|
||||
display.deprecated(msg, version='2.8')
|
||||
display.deprecated(msg, version=version)
|
||||
except:
|
||||
import sys
|
||||
sys.stderr.write('[DEPRECATED] %s, to be removed in 2.8' % msg)
|
||||
sys.stderr.write('[DEPRECATED] %s, to be removed in %s' % (msg, version))
|
||||
|
||||
|
||||
def mk_boolean(value):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue