From: Ian Jackson Date: Wed, 6 Jul 2016 14:10:33 +0000 (+0100) Subject: ts-hosts-allocate-Executive: pass $plan to hid_find_possibilities X-Git-Tag: openstack-v11~270 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=950be02493f1dd293b13f2316ac24e2ef34c459a;p=people%2Faperard%2Fosstest.git ts-hosts-allocate-Executive: pass $plan to hid_find_possibilities We are going to want this to implement the new diverse-CLASS hostflag. Signed-off-by: Ian Jackson CC: Wei Liu --- diff --git a/ts-hosts-allocate-Executive b/ts-hosts-allocate-Executive index 451c6fc8..6a03d325 100755 --- a/ts-hosts-allocate-Executive +++ b/ts-hosts-allocate-Executive @@ -272,8 +272,8 @@ sub compute_hids () { } } -sub hid_find_possibilities ($) { - my ($hid) = @_; +sub hid_find_possibilities ($$) { + my ($hid, $plan) = @_; delete $hid->{Candidates}; @@ -647,7 +647,7 @@ sub attempt_allocation { foreach my $hid (@hids) { delete $hid->{Allocated}; - hid_find_possibilities($hid); + hid_find_possibilities($hid, $plan); } optimally_order_hids();