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

zerigo.py - zone.id

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 0.10.1
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
    • Environment:

      CentOS 6.2

      Description

      in libcloud/dns/drivers/zerigo.py in the_get_more function lines 433 and 434 reference zone.id

      Within the list_records(ZONE_ID) function zone.id breaks this function:

      Traceback (most recent call last):
      File "/opt/zpf/scripts/libcloud.zerigo.dns.list.records", line 52, in <module>
      for host in hosts:
      File "/usr/lib/python2.6/site-packages/libcloud/common/types.py", line 95, in _iter_
      self._load_all()
      File "/usr/lib/python2.6/site-packages/libcloud/common/types.py", line 121, in _load_all
      value_dict=self._value_dict)
      File "/usr/lib/python2.6/site-packages/libcloud/dns/drivers/zerigo.py", line 435, in _get_more
      path = API_ROOT + 'zones/%s/hosts.xml' % (zone.id)
      AttributeError: 'str' object has no attribute 'id'

      I changed the zone.id to just zone and that seems to fix it...

        Attachments

        1. LIBCLOUD-201.patch
          0.8 kB
          Gary Wilson

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              earthgecko Gary Wilson

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment