selecthost get_hostflags get_host_property
get_target_property get_host_native_linux_console
- hostnamepath hostnamepath_list
+ hostnamepath hostnamepath_list set_runtime_hostflag
power_state power_cycle power_cycle_sleep
serial_fetch_logs set_host_property
propname_massage propname_check
my ($ident) = @_;
# may be run outside transaction, or with flights locked
my $flags= get_runvar_default('all_hostflags', $job, '').','.
- get_runvar_default("${ident}_hostflags", $job, '');
+ get_runvar_default("${ident}_hostflags", $job, '').','.
+ get_runvar_default("runtime_${ident}_hostflags", $job, '');
return grep /./, split /\,/, $flags;
}
+sub set_runtime_hostflag ($$) {
+ my ($ident,$value) = @_;
+ my @current = split /,/, get_runvar_default("runtime_${ident}_hostflags",
+ $job, '');
+
+ push @current, (split /,/, $value);
+ store_runvar("runtime_${ident}_hostflags", (join ',', @current));
+}
+
sub host_involves_pcipassthrough ($) {
my ($ho) = @_;
return !!grep m/^pcipassthrough\-/, get_hostflags($ho->{Ident});