commit d34aae015df4d4aafd6d4c0f209c478409d28144
Author: Jan Tluka <jtluka(a)redhat.com>
Date: Mon Aug 18 14:30:51 2014 +0200
SlavePool: make machines available when pool checking is disabled
If pool checking is disabled with -o option the 'available' variable is
not set and referenced before assignment.
Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
lnst/Controller/SlavePool.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/lnst/Controller/SlavePool.py b/lnst/Controller/SlavePool.py
index baca1e7..22c4379 100644
--- a/lnst/Controller/SlavePool.py
+++ b/lnst/Controller/SlavePool.py
@@ -124,6 +124,8 @@ class SlavePool:
logging.debug("libvirtd not running. Removing "\
"libvirt_domain from machine '%s'"
% m_id)
del machine_spec['params']['libvirt_domain']
+ else:
+ available = True
if available:
self._pool[m_id] = machine_spec