projects
/
dyn-nsupdate.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
better return report
[dyn-nsupdate.git]
/
server-scripts
/
update
diff --git
a/server-scripts/update
b/server-scripts/update
index 5fc519b3530bbed36303202e0d6e5f95dc82deb2..0e8234c36bbc68ae83b5dde168f0b3e3709cc550 100755
(executable)
--- a/
server-scripts/update
+++ b/
server-scripts/update
@@
-42,6
+42,8
@@
domain = form.getfirst("domain")
password = form.getfirst("password")
ip = form.getfirst("ip")
ipv6 = form.getfirst("ipv6")
password = form.getfirst("password")
ip = form.getfirst("ip")
ipv6 = form.getfirst("ipv6")
+assert domain is not None and password is not None
+assert ip is not None or ipv6 is not None
# run update program
args = ["/var/lib/bind/dyn-nsupdate", "--domain", domain, "--password", password]
# run update program
args = ["/var/lib/bind/dyn-nsupdate", "--domain", domain, "--password", password]
@@
-59,4
+61,9
@@
if p.returncode or stderr or stdout:
if stdout: print stdout
if stderr: print stderr
else:
if stdout: print stdout
if stderr: print stderr
else:
- print "good",ip
+ print "good",
+ if ip is not None:
+ print ip,
+ if ipv6 is not None:
+ print ipv6,
+ print