From 86c1ddd2294e78d2f8482c827bafb48e3d23dfe0 Mon Sep 17 00:00:00 2001 From: Ondrej Lichtner Date: Tue, 6 Oct 2020 14:10:24 +0200 Subject: [PATCH] Machine: fix default value for Machine pool_params Should be {} instead of None since this is automatically passed to the _from_dict() method of a Parameters instance. This affects recipes where we dynamically connect to machines as part of the recipe itself - for example guest vms created during the recipe. Signed-off-by: Ondrej Lichtner --- lnst/Controller/Machine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnst/Controller/Machine.py b/lnst/Controller/Machine.py index f63fd6fc0..10e0fdc41 100644 --- a/lnst/Controller/Machine.py +++ b/lnst/Controller/Machine.py @@ -45,7 +45,7 @@ class Machine(object): """ def __init__(self, m_id, hostname, msg_dispatcher, ctl_config, - libvirt_domain=None, rpcport=None, security=None, pool_params=None): + libvirt_domain=None, rpcport=None, security=None, pool_params={}): self._id = m_id self._hostname = hostname self._mapped = False