Code Monkey home page Code Monkey logo

Comments (6)

thorus90 avatar thorus90 commented on July 29, 2024

Oh well, I guess I found it :D

def get_record(self, server, zone, name):
        # TODO: implementation
        return dict()

from ansible-module-powerdns.

thorus90 avatar thorus90 commented on July 29, 2024

Ok that wasn't it:
I'm using pdns 4.0 alpha delivered by Ubuntu 16.04, and appearantly it is returning the zone entries differently:

{'comments': [], 'name': 'test02.eim.master.dns.', 'records': [{'content': '172.16.43.100', 'disabled': False}], 'ttl': 1440, 'type': 'A'}

Changing

if record.get('content', None) != content or record.get('ttl', None) != ttl:

into

if record['records'][0]['content'] != content or record.get('ttl', None) != ttl:

powerdns delivering it as a list when you have the same name and type multiple times in your zone.

My solution is quick and dirty but works for me.

from ansible-module-powerdns.

Nosmoht avatar Nosmoht commented on July 29, 2024

Andy Chance to keep backwart compatibility?

from ansible-module-powerdns.

sizgiyaev avatar sizgiyaev commented on July 29, 2024

Hi, this PR resolves it.
#10

from ansible-module-powerdns.

thorus90 avatar thorus90 commented on July 29, 2024

Thanks can confirm, this fixes it.

from ansible-module-powerdns.

Nothing4You avatar Nothing4You commented on July 29, 2024

@thorus90 since this is fixed, can you please close the issue?

from ansible-module-powerdns.

Related Issues (17)

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.