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

[augeas-devel] [Augeas] #285: Type error accessing seq nodes via context



#285: Type error accessing seq nodes via context
----------------------+-----------------------
 Reporter:  domcleal  |       Owner:  domcleal
     Type:  defect    |      Status:  new
 Priority:  major     |   Milestone:  next
Component:  Augeas    |     Version:  0.10.0
 Keywords:  context   |  Blocked By:
 Blocking:            |
----------------------+-----------------------
 When setting /augeas/context to the parent of a seq node and then
 accessing a relative path that begins with a seq counter, you receive a
 type error:

 {{{
 augtool> set /augeas/context /files/etc/hosts
 augtool> get 1/ipaddr
 error: Invalid path expression
 error: type error
 1/ipaddr|=|
 augtool> get /files/etc/hosts/1/ipaddr
 /files/etc/hosts/1/ipaddr = 127.0.0.1
 augtool> set /augeas/context /files/etc
 augtool> get hosts/1/ipaddr
 hosts/1/ipaddr = 127.0.0.1
 }}}

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



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