From: Ondrej Lichtner <olichtne(a)redhat.com>
Kwargs need to be passed with the "**" syntax.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/RecipeCommon/Ping.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lnst/RecipeCommon/Ping.py b/lnst/RecipeCommon/Ping.py
index 7599b66..f5cd652 100644
--- a/lnst/RecipeCommon/Ping.py
+++ b/lnst/RecipeCommon/Ping.py
@@ -47,7 +47,8 @@ class PingTestAndEvaluate(BaseRecipe):
client = ping_config.client
destination = ping_config.destination
- ping = Ping(self._generate_ping_kwargs(ping_config))
+ kwargs = self._generate_ping_kwargs(ping_config)
+ ping = Ping(**kwargs)
ping_job = client.run(ping)
return ping_job.result
--
2.19.0