@@ -485,7 +485,7 @@ class AsyncClientMixin(object):
485485 client = None
486486 tag_prefix = None
487487
488- def _proc_function (self , fun , low , user , tag , jid , daemonize = True ):
488+ def _proc_function_remote (self , fun , low , user , tag , jid , daemonize = True ):
489489 """
490490 Run this method in a multiprocess target to execute the function on the
491491 master and fire the return data on the event bus
@@ -509,7 +509,7 @@ def _proc_function(self, fun, low, user, tag, jid, daemonize=True):
509509 except salt .exceptions .EauthAuthenticationError as exc :
510510 log .error (exc )
511511
512- def _proc_function_local (self , fun , low , user , tag , jid , daemonize = True ):
512+ def _proc_function (self , fun , low , user , tag , jid , daemonize = True ):
513513 """
514514 Run this method in a multiprocess target to execute the function
515515 locally and fire the return data on the event bus
@@ -556,15 +556,15 @@ def _gen_async_pub(self, jid=None):
556556 tag = salt .utils .event .tagify (jid , prefix = self .tag_prefix )
557557 return {"tag" : tag , "jid" : jid }
558558
559- def asynchronous (self , fun , low , user = "UNKNOWN" , pub = None , local = False ):
559+ def asynchronous (self , fun , low , user = "UNKNOWN" , pub = None , local = True ):
560560 """
561561 Execute the function in a multiprocess and return the event tag to use
562562 to watch for the return
563563 """
564564 if local :
565- proc_func = self ._proc_function_local
566- else :
567565 proc_func = self ._proc_function
566+ else :
567+ proc_func = self ._proc_function_remote
568568 async_pub = pub if pub is not None else self ._gen_async_pub ()
569569 proc = salt .utils .process .SignalHandlingProcess (
570570 target = proc_func ,
0 commit comments