2020-04-07 14:14:01 +02:00
|
|
|
From 5c25babafd4e4bbe55626713851ea5d6345c43d1 Mon Sep 17 00:00:00 2001
|
2019-10-10 13:49:11 +02:00
|
|
|
From: =?UTF-8?q?Pablo=20Su=C3=A1rez=20Hern=C3=A1ndez?=
|
|
|
|
<psuarezhernandez@suse.com>
|
|
|
|
Date: Wed, 9 Oct 2019 13:03:33 +0100
|
|
|
|
Subject: [PATCH] Add missing 'fun' for returns from wfunc executions
|
|
|
|
|
|
|
|
---
|
|
|
|
salt/client/ssh/__init__.py | 4 ++++
|
|
|
|
1 file changed, 4 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/salt/client/ssh/__init__.py b/salt/client/ssh/__init__.py
|
2020-04-07 14:14:01 +02:00
|
|
|
index 4881540837..1373274739 100644
|
2019-10-10 13:49:11 +02:00
|
|
|
--- a/salt/client/ssh/__init__.py
|
|
|
|
+++ b/salt/client/ssh/__init__.py
|
|
|
|
@@ -682,6 +682,8 @@ class SSH(object):
|
|
|
|
data = {'return': data}
|
|
|
|
if 'id' not in data:
|
|
|
|
data['id'] = id_
|
|
|
|
+ if 'fun' not in data:
|
|
|
|
+ data['fun'] = fun
|
|
|
|
data['jid'] = jid # make the jid in the payload the same as the jid in the tag
|
|
|
|
self.event.fire_event(
|
|
|
|
data,
|
|
|
|
@@ -797,6 +799,8 @@ class SSH(object):
|
|
|
|
data = {'return': data}
|
|
|
|
if 'id' not in data:
|
|
|
|
data['id'] = id_
|
|
|
|
+ if 'fun' not in data:
|
|
|
|
+ data['fun'] = fun
|
|
|
|
data['jid'] = jid # make the jid in the payload the same as the jid in the tag
|
|
|
|
self.event.fire_event(
|
|
|
|
data,
|
|
|
|
--
|
2019-11-28 16:41:55 +01:00
|
|
|
2.16.4
|
2019-10-10 13:49:11 +02:00
|
|
|
|
|
|
|
|