Let's not forget to remove the log message

This commit is contained in:
Pedro Algarvio 2015-02-28 19:23:09 +00:00
parent 5573b18624
commit ea5317f2e0

View File

@ -21,6 +21,7 @@ import yaml
# Import salt libs
import salt
import salt.utils
import salt.fileclient
from salt.utils.odict import OrderedDict
from salt.ext.six import string_types
@ -375,6 +376,11 @@ class SerializerExtension(Extension, object):
if yaml_txt.endswith('\n...\n'):
log.info('Yaml filter ended with "\n...\n". This trailing string '
'will be removed in Boron.')
salt.utils.warn_until(
'Boron',
'Please remove the log message above.',
_dont_call_warnings=True
)
return Markup(yaml_txt)
def format_python(self, value):