mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #35393 from deniszh/2016.3_fix35350
No need to run ddns update every time
This commit is contained in:
commit
b3e9e98b40
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue