Giter Club home page Giter Club logo

Comments (4)

AnalogJ avatar AnalogJ commented on May 13, 2024

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.

michaeltravisuk avatar michaeltravisuk commented on May 13, 2024

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.

AnalogJ avatar AnalogJ commented on May 13, 2024

Thanks. Looks like I'm missing a unit test for that. Can you verify that everything is working now?

from lexicon.

michaeltravisuk avatar michaeltravisuk commented on May 13, 2024

Just tested it now, works fine both with or without TTL flag.

Many thanks!

from lexicon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.