Comment 0 for bug 1825049

Revision history for this message
Leon Miller-Out (v-leon) wrote :

The bug fixed by the following pull request is also present in lexicon v2.2.1-2, and the fix should be backported.
https://github.com/AnalogJ/lexicon/pull/389/files?file-filters%5B%5D=.py

This causes requests to the DNSimple.com API for DNS record creation to fail because the generated URL is ill-formed.

Line 64 of is
        payload = self._post('{0}/zones/{1}/records'.format(self.account_id, self.options.get('domain')), record)
but should be
        payload = self._post('/{0}/zones/{1}/records'.format(self.account_id, self.options.get('domain')), record)

$ lsb_release -rd
Description: Ubuntu 18.04.2 LTS
Release: 18.04

$ apt-cache policy lexicon
lexicon:
  Installed: (none)
  Candidate: 2.2.1-2
  Version table:
     2.2.1-2 500
        500 http://mirror.rackspace.com/ubuntu bionic/universe amd64 Packages
        500 http://mirror.rackspace.com/ubuntu bionic/universe i386 Packages
        500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        500 http://archive.ubuntu.com/ubuntu bionic/universe i386 Packages