From: Ian Jackson Subject: Re: [PATCH OSSTEST v2 3/4] Add support for selecting resources based on their properties. Date: Wed, 16 Sep 2015 14:50:55 +0100 Message-ID: <22009.29631.949655.327160@mariner.uk.xensource.com> References: <1442404047.18856.51.camel@citrix.com> <1442404064-16192-3-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1442404064-16192-3-git-send-email-ian.campbell@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("[PATCH OSSTEST v2 3/4] Add support for selecting resources based on their properties."): > In particular for allocating hosts based on host properties. Acked-by: Ian Jackson > + die "propname: $prop?" unless propname_check($prop); ... > +sub propname_check ($) { > + # ensure propname is valid and in the canonical WordWordWord form > + # (rather than, say, one of the legacy forms described in > + # propname_massage). As a matter of taste, I would have had propname_check throw rather than making it be a predicate. Ian.