dtolabs / yana2

Yet Another Node Authority ... because you wanted an agile Real-Time Service Model (RTSM)
8 stars 1 forks source link

XML representation does not include children if parent has no parent #75

Closed ahonor closed 12 years ago

ahonor commented 12 years ago

XML representation does not include children if parent has no parent


To reproduce:

Below is example output:

Notice that no children are shown.


<nodes>
  <node id="7" name="Main_Location" type="Location" tags="location,berkeley,ca">
    <description>This is a location attached to the server</description>
    <attributes>
      <attribute name="State" value="CA" required="false"/>
      <attribute name="Provider_Name" value="Rackspace" required="false"/>
      <attribute name="Postal_Code" value="94703" required="false"/>
      <attribute name="Country" value="USA" required="false"/>
      <attribute name="City" value="Berkeley" required="false"/>
    </attributes>
    <parents/>
    <children/>
  </node>
</nodes>
orubel commented 12 years ago

pushing fix that fixes this in all areas since this is in service and service is used by all areas where this is affected