Comments (4)
Hey @michaeltravisuk
Good catch. I'm traveling right now so I'm only going to have time to create a quick PR. If the existing unit tests pass I'll kick off a new release, but if not I'll need to debug it when I get back.
from lexicon.
Thanks for looking at it so quickly. The fix makes the TTL parameter work. I also tested without using the TTL parameter and it no longer works. I have modified our copy of the dehydrated example script to pass a TTL value so it works for me, however I just wanted to bring it to your attention:
Namespace(action='create', auth_token=None, content='TEST', domain='platformservices.io', identifier=None, name='testsubdomain.platformservices.io', priority=None, provider_name='gandi', ttl=None, type='TXT') Traceback (most recent call last): File "/bin/lexicon", line 11, in <module> load_entry_point('dns-lexicon==1.1.19', 'console_scripts', 'lexicon')() File "/usr/lib/python2.7/site-packages/lexicon/__main__.py", line 52, in main client.execute() File "/usr/lib/python2.7/site-packages/lexicon/client.py", line 28, in execute return self.provider.create_record(self.options.get('type'), self.options.get('name'), self.options.get('content')) File "/usr/lib/python2.7/site-packages/lexicon/providers/gandi.py", line 97, in create_record 'ttl': self.options.get('ttl',self.default_ttl) File "/usr/lib64/python2.7/xmlrpclib.py", line 1233, in __call__ return self.__send(self.__name, args) File "/usr/lib64/python2.7/xmlrpclib.py", line 1581, in __request allow_none=self.__allow_none) File "/usr/lib64/python2.7/xmlrpclib.py", line 1086, in dumps data = m.dumps(params) File "/usr/lib64/python2.7/xmlrpclib.py", line 633, in dumps dump(v, write) File "/usr/lib64/python2.7/xmlrpclib.py", line 655, in __dump f(self, value, write) File "/usr/lib64/python2.7/xmlrpclib.py", line 736, in dump_struct dump(v, write) File "/usr/lib64/python2.7/xmlrpclib.py", line 655, in __dump f(self, value, write) File "/usr/lib64/python2.7/xmlrpclib.py", line 659, in dump_nil raise TypeError, "cannot marshal None unless allow_none is enabled" TypeError: cannot marshal None unless allow_none is enabled
from lexicon.
Thanks. Looks like I'm missing a unit test for that. Can you verify that everything is working now?
from lexicon.
Just tested it now, works fine both with or without TTL flag.
Many thanks!
from lexicon.
Related Issues (20)
- Bug in create action for glesys provider
- Hetzner list only first 100 entries of domain HOT 2
- easyname update does not work anymore
- Update of A record for DynU.com not working
- DuckDNS.org API support HOT 1
- Docs specify wrong environment variable for tldextract cache
- lexicon cannot find the route53.py HOT 3
- GoDaddy listing records fails if given --content option
- Add Technitium DNS server API HOT 4
- Hover usage broken by mandatory 2FA HOT 25
- importlib-metadata package not needed HOT 2
- Can't use lexicon with pending Cloudflare domains
- Cloudflare - 405 while deleting a TXT record (cloudflare.py#L172-L183) HOT 1
- Error in certbot-dns-ovh using lexicon HOT 10
- Wrong requests requirement HOT 2
- Gandi API key method is deprecated HOT 2
- certificate domain tld is added to gandi request since dnsrobocert 3.25.0
- Add all-inkl as supported Provider
- DDNS provider is not responding to error conditions correctly
- Cannot make SRV on CloudFlare
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lexicon.