]> xenbits.xensource.com Git - people/liuw/osstest.git/commitdiff
ts-hosts-allocate-Executive: pass $plan to hid_find_possibilities
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 6 Jul 2016 14:10:33 +0000 (15:10 +0100)
committerWei Liu <wei.liu2@citrix.com>
Tue, 6 Sep 2016 11:30:34 +0000 (12:30 +0100)
We are going to want this to implement the new diverse-CLASS hostflag.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
ts-hosts-allocate-Executive

index 451c6fc8fbe288e657175716f9b1c42802a6137e..6a03d32551ecc0fb24595885746b5ccb131133b9 100755 (executable)
@@ -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();