Hi Martin,
Have you considered using an Augeas provider here, using the Xml lens?
Cheers,
Raphaël
On Wednesday, February 25, 2015 at 6:18:02 PM UTC+1, Martin Alfke wrote:
>
> Hi,
>
> I am stuck at a puppet provider where I need to read data from xml.
>
> Data which needs to get parsed:
>
Many thanks for the feedback.
Structure and Data can vary (depending on functionality - in this case ipv4 vs.
ipv6).
I was only doing one thing wrong in my code (one level of indirection too much)
The following solution works:
:addressrange=> Hash[vnet.xpath('./AR_POOL/AR/AR_ID').collect { |
I would take a look at nokogiri. It's an XML/HTML parser for Ruby. Some
helpful hints here:
http://stackoverflow.com/questions/11198239/parsing-xml-with-ruby
- thomas
On 2015-02-25 19:43, Henrik Lindberg wrote:
On 2015-25-02 18:17, Martin Alfke wrote:
Hi,
I am stuck at a puppet provider whe
On 2015-25-02 18:17, Martin Alfke wrote:
Hi,
I am stuck at a puppet provider where I need to read data from xml.
Data which needs to get parsed:
0
0
Expected