We need to take these from the config too.

Signed-off-by: Ian Jackson <ian.jack...@eu.citrix.com>
CC: Roger Pau Monné <roy...@freebsd.org>
---
 Osstest/ResourceCondition/PropCompareBase.pm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Osstest/ResourceCondition/PropCompareBase.pm 
b/Osstest/ResourceCondition/PropCompareBase.pm
index 1e3aa85..e1efe5f 100644
--- a/Osstest/ResourceCondition/PropCompareBase.pm
+++ b/Osstest/ResourceCondition/PropCompareBase.pm
@@ -47,6 +47,11 @@ sub new {
 sub _get_val ($$$) {
     my ($pc, $restype, $resname) = @_;
 
+    if ($restype eq 'host') {
+       my $v = $c{"HostProp_${resname}"};
+       return $v if defined $v;
+    }
+
     # Using _cached avoids needing to worry about $dbh_tests being
     # closed/reopened between invocations
     my $hpropq = $dbh_tests->prepare_cached(<<END);
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to