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

[augeas-devel] [Augeas] #44: path expressions: 'and' and 'or' need to coerce types



#44: path expressions: 'and' and 'or' need to coerce types
--------------------+-------------------------------------------------------
 Reporter:  lutter  |       Owner:  lutter
     Type:  defect  |      Status:  new   
 Priority:  major   |   Milestone:  next  
Component:  Augeas  |     Version:  0.4.1 
 Keywords:          |  
--------------------+-------------------------------------------------------
 This should work:


 {{{
 match "/files[/files/etc/hosts/*[ipaddr = '127.0.0.1'] or
 /files/etc/aliases/*[name = 'root'] ]"
 }}}

 but produces a type error since the operands of the 'or' have type
 nodeset, which could be automatically coerced to boolean, but isn't.

-- 
Ticket URL: <https://fedorahosted.org/augeas/ticket/44>
Augeas <http://augeas.net/>
a configuration API



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