Uploaded image for project: 'Libcloud'
  1. Libcloud
  2. LIBCLOUD-209

Zerigo DNS driver fails to list records if any of them is URL type

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.1
    • Fix Version/s: 0.11.0
    • Component/s: None
    • Labels:

      Description

      Zerigo allows records of type "Redirect" to be added. It returns them as "host-type=URL". Libcloud diver does not recognize and throws an "AttributeError: type object 'RecordType' has no attribute 'URL'" exception, making list_records unusable.

      This is response returned from Zerigo API:

      '<host>\n <created-at type="datetime">2012-06-08T11:33:15Z</created-at>\n <updated-at type="datetime">2012-06-08T11:33:15Z</updated-at>\n <notes nil="true" />\n <zone-id type="integer">618718712</zone-id>\n <ttl type="integer">259200</ttl>\n <state>active</state>\n <hostname></hostname>\n <data>http://www.example.com/</data>\n <id type="integer">1224113769</id>\n <fqdn>.web-trgovina.com.hr</fqdn>\n <priority nil="true" />\n <host-type>URL</host-type>\n </host>\n '

      And error:

      zone.list_records()

      AttributeError: type object 'RecordType' has no attribute 'URL'

        Activity

        Hide
        bmihelac Bojan Mihelac added a comment -

        patch

        Show
        bmihelac Bojan Mihelac added a comment - patch
        Hide
        kami Tomaz Muraus added a comment -

        Committed into trunk, thanks.

        Show
        kami Tomaz Muraus added a comment - Committed into trunk, thanks.

          People

          • Assignee:
            kami Tomaz Muraus
            Reporter:
            bmihelac Bojan Mihelac
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1h
              1h
              Remaining:
              Remaining Estimate - 1h
              1h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development