You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the godaddy provider and listing records, if the content filter option is given then a Python exception is raised.
I believe it is trying to access the wrong member of a dictionary of godaddy.py line 85:
records = [record for record in records if record["data"] == content]
rather than
records = [record for record in records if record["content"] == content]
Invoking as:
lexicon godaddy list example.com A --name test.example.com --content 10.1.2.3
the stack trace is:
Traceback (most recent call last):
File "/usr/local/bin/lexicon", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.8/dist-packages/lexicon/cli.py", line 131, in main
results = client.execute()
File "/usr/local/lib/python3.8/dist-packages/lexicon/client.py", line 93, in execute
return self.provider.list_records(record_type, name, content)
File "/usr/local/lib/python3.8/dist-packages/lexicon/providers/base.py", line 92, in list_records
return self._list_records(rtype=rtype, name=name, content=content)
File "/usr/local/lib/python3.8/dist-packages/lexicon/providers/godaddy.py", line 85, in _list_records
records = [record for record in records if record["data"] == content]
File "/usr/local/lib/python3.8/dist-packages/lexicon/providers/godaddy.py", line 85, in <listcomp>
records = [record for record in records if record["data"] == content]
KeyError: 'data'
The text was updated successfully, but these errors were encountered:
Using Lexicon 3.11.7
When using the godaddy provider and listing records, if the content filter option is given then a Python exception is raised.
I believe it is trying to access the wrong member of a dictionary of godaddy.py line 85:
rather than
Invoking as:
the stack trace is:
The text was updated successfully, but these errors were encountered: