[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH 2/3] resource allocation: PropEq, PropMinVer: Honour HostProp_...



We need to take these from the config too.

Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
CC: Roger Pau Monné <royger@xxxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.