def allocate_slots_price()

in hostfactory/host_provider/src/allocation_strategy.py [0:0]


    def allocate_slots_price(self, requested_slots, template_id, vm_types):
        result = None
        self.logger.debug("Using price based allocation")
        # Let node_mgr choose the vm_types
        result = self.node_mgr.allocate({"weight": 1, "template_id": template_id, 
                                        "capacity-failure-backoff": self.capacity_limit_timeout},
                                        slot_count=requested_slots,
                                        allow_existing=False)
        return result.nodes or []