Merge pull request #25225 from nmadhok/client-runtime-fix-backport-2015-2

Backporting fix for issue #25223 on 2015.5 branch
This commit is contained in:
Mike Place 2015-07-08 09:16:18 -06:00
commit c6efd2356c

View file

@ -5,6 +5,7 @@ A collection of mixins useful for the various *Client interfaces
from __future__ import print_function
from __future__ import absolute_import
import collections
import copy
import logging
import traceback
import multiprocessing
@ -266,10 +267,12 @@ class SyncClientMixin(object):
try:
verify_fun(self.functions, fun)
# Inject some useful globals to *all* the funciton's global
# Inject some useful globals to *all* the function's global
# namespace only once per module-- not per func
completed_funcs = []
for mod_name in self.functions:
_functions = copy.deepcopy(self.functions)
for mod_name in _functions:
mod, _ = mod_name.split('.', 1)
if mod in completed_funcs:
continue