]> xenbits.xensource.com Git - people/aperard/osstest.git/commitdiff
ts-hosts-allocate-Executive: tolerate lack of hostflags
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 12 May 2017 11:05:51 +0000 (12:05 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 16 May 2017 17:43:18 +0000 (18:43 +0100)
Jobs generated by make-hosts-flight do not need to (and therefore do
not) set any hostflags: they set a `host' runvar instead, for the
specific host.  Do not pointlessly bomb out in this situation.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
ts-hosts-allocate-Executive

index 94172267b91cc152b5d8ec5a6916b44ff083e70e..0987e2b5ed7010464c8646375eabe585910c1f88 100755 (executable)
@@ -232,7 +232,8 @@ sub compute_hids () {
             print DEBUG "HID $ident OVERRIDE $hid->{OverrideUse}\n";
         }
         my @flags= get_hostflags($ident);
-       die "no hostflags?!" unless @flags;
+       die "no hostflags?!" unless @flags or
+           $hid->{OverrideUse} or $r{$ident};
         print DEBUG "HID $ident FLAGS @flags\n";
         $hid->{Ident}= $ident;
         my %flags;