From bc338af3d327952b3492df3e28cd9339e8b40561 Mon Sep 17 00:00:00 2001 From: David Hilton Date: Thu, 27 Jun 2019 12:18:56 -0600 Subject: [PATCH] generify masterminion returners function not found error - may be because returner isn't loaded --- salt/utils/job.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/utils/job.py b/salt/utils/job.py index 5637ef8a5bcf..192f3736cd6e 100644 --- a/salt/utils/job.py +++ b/salt/utils/job.py @@ -41,7 +41,7 @@ def store_job(opts, load, event=None, mminion=None): try: load['jid'] = mminion.returners[prep_fstr](nocache=load.get('nocache', False)) except KeyError: - emsg = "Returner '{0}' does not support function prep_jid".format(job_cache) + emsg = "Returner function not found: {0}".format(prep_fstr) log.error(emsg) raise KeyError(emsg) except Exception: @@ -55,7 +55,7 @@ def store_job(opts, load, event=None, mminion=None): try: mminion.returners[saveload_fstr](load['jid'], load) except KeyError: - emsg = "Returner '{0}' does not support function save_load".format(job_cache) + emsg = "Returner function not found: {0}".format(saveload_fstr) log.error(emsg) raise KeyError(emsg) except Exception: