Skip to content

Commit

Permalink
Merge pull request #35393 from deniszh/2016.3_fix35350
Browse files Browse the repository at this point in the history
No need to run ddns update every time
  • Loading branch information
Mike Place committed Aug 12, 2016
2 parents a5fe05b + 6f2f080 commit b3e9e98
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions salt/modules/ddns.py
Expand Up @@ -188,6 +188,8 @@ def update(zone, name, ttl, rdtype, data, nameserver='127.0.0.1',
dns_update.replace(name, ttl, rdata)
elif not is_exist:
dns_update.add(name, ttl, rdata)
else:
return None
answer = dns.query.udp(dns_update, nameserver)
if answer.rcode() > 0:
return False
Expand Down

0 comments on commit b3e9e98

Please sign in to comment.