annegentle / wadl2rst

Provides a WADL to RST migration tool
Apache License 2.0
2 stars 1 forks source link

images-v2.1.wadl throws error (related to resource-type changes) #32

Closed missaugustina closed 8 years ago

missaugustina commented 8 years ago
Processing WADL: ../api-site/api-ref/src/wadls/compute-api/src/v2.1/wadl/images-v2.1.wadl
Traceback (most recent call last):
  File "/home/auggy/.pyenv/versions/wadl2rst/bin/wadl2rst", line 9, in <module>
    load_entry_point('wadl2rst', 'console_scripts', 'wadl2rst')()
  File "/home/auggy/dev/wadl2rst/wadl2rst/main.py", line 54, in main
    execute_translations(ir, filename)
  File "/home/auggy/dev/wadl2rst/wadl2rst/main.py", line 109, in execute_translations
    collapse_resources(ir)
  File "/home/auggy/dev/wadl2rst/wadl2rst/transformations/collapse_resources.py", line 47, in collapse_resources
    rtnode.parent.remove_child(rtnode)
  File "/home/auggy/dev/wadl2rst/wadl2rst/nodes/base.py", line 16, in remove_child
    self.children.remove(child)
ValueError: list.remove(x): x not in list
annegentle commented 8 years ago

Yeah, for this proof of concept it's okay to ignore. We'll have to figure it out for the rest of the projects eventually. Maybe fairy-slipper can take over then? We shall see.

missaugustina commented 8 years ago

I fixed it.