Clarify where the deprecation warning is coming from.

This commit is contained in:
Pedro Algarvio 2013-10-17 08:27:18 +01:00
parent 15af04c71a
commit 49fb217c7b

View File

@ -769,11 +769,12 @@ class Loader(object):
salt.utils.warn_until(
'Hydrogen',
'The {0!r} module is renaming itself '
'in it\'s __virtual__() function. '
'Please set it\'s virtual name as the '
'\'__virtualname__\' module attribute.'
' Example: "__virtualname__ = {1!r}"'
.format(
'in it\'s __virtual__() function ({1} '
'=> {2}). Please set it\'s virtual '
'name as the \'__virtualname__\' '
'module attribute. Example: '
'"__virtualname__ = {2!r}"'.format(
mod.__name__,
module_name,
virtual
)