commit 3573b61371b1c9ff2f0e894e4f687aff935deb0f
Author: Radek Novacek <rnovacek(a)redhat.com>
Date: Tue Aug 27 15:48:27 2013 +0200
Optimize creating satellite plan a little
satellite.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/satellite.py b/satellite.py
index 3a98beb..055719c 100644
--- a/satellite.py
+++ b/satellite.py
@@ -132,12 +132,12 @@ class Satellite(object):
def hypervisorCheckIn(self, owner, env, mapping, type=None):
- for hypervisor_uuid in mapping:
+ for hypervisor_uuid, guest_uuids in mapping.items():
self.logger.debug("Loading systemid for %s" % hypervisor_uuid)
hypervisor_systemid = self._load_hypervisor(hypervisor_uuid, type=type)
- self.logger.debug("Building plan for hypervisor %s: %s" %
(hypervisor_uuid, mapping[hypervisor_uuid]))
- plan = self._assemble_plan(mapping[hypervisor_uuid], hypervisor_uuid, type =
type)
+ self.logger.debug("Building plan for hypervisor %s: %s" %
(hypervisor_uuid, guest_uuids))
+ plan = self._assemble_plan(guest_uuids, hypervisor_uuid, type=type)
try:
self.logger.debug("Sending plan: %s" % plan)
Show replies by date