def _get_mysql_error():
 return sys.modules[__salt__['test.ping'].__module__].__context__.pop('mysql.error', None)

def _get_mysql_error ( ) : return sys . modules [ __salt__ [ 'test.ping' ] . __module__ ] . __context__ . pop ( 'mysql.error' , None )
look in module context for a mysql error .