|
From: <jh...@us...> - 2011-04-12 06:20:15
|
Revision: 269
http://etch.svn.sourceforge.net/etch/?rev=269&view=rev
Author: jheiss
Date: 2011-04-12 06:20:09 +0000 (Tue, 12 Apr 2011)
Log Message:
-----------
When reading in the node group hierarchy use the xmlattrvalue method
rather than directly talking to the underlying XML library. The code to
do so was not compatible with nokogiri.
Modified Paths:
--------------
trunk/server/lib/etch.rb
Modified: trunk/server/lib/etch.rb
===================================================================
--- trunk/server/lib/etch.rb 2011-04-12 06:08:33 UTC (rev 268)
+++ trunk/server/lib/etch.rb 2011-04-12 06:20:09 UTC (rev 269)
@@ -135,7 +135,7 @@
Etch.xmleach(@nodegroups_xml, '/nodegroups/nodegroup') do |parent|
Etch.xmleach(parent, 'child') do |child|
@group_hierarchy[Etch.xmltext(child)] = [] if !@group_hierarchy[Etch.xmltext(child)]
- @group_hierarchy[Etch.xmltext(child)] << parent.attributes['name']
+ @group_hierarchy[Etch.xmltext(child)] << Etch.xmlattrvalue(parent, 'name')
end
end
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|