|
|
@ -259,8 +259,13 @@ def main() -> int:
|
|
|
|
ttl = None
|
|
|
|
ttl = None
|
|
|
|
if 'ttl' in args:
|
|
|
|
if 'ttl' in args:
|
|
|
|
ttl = args.ttl
|
|
|
|
ttl = args.ttl
|
|
|
|
url = setup_url(baseurl, args.argument, args.data, args.name, args.rtype,
|
|
|
|
try:
|
|
|
|
ttl, args.zone)
|
|
|
|
url = setup_url(baseurl, args.argument, args.data, args.name,
|
|
|
|
|
|
|
|
args.rtype, ttl, args.zone)
|
|
|
|
|
|
|
|
except AttributeError:
|
|
|
|
|
|
|
|
parser.print_help(sys.stderr)
|
|
|
|
|
|
|
|
sys.exit(1)
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
if args.command == "add":
|
|
|
|
if args.command == "add":
|
|
|
|
run_add(url, args.json, headers)
|
|
|
|
run_add(url, args.json, headers)
|
|
|
|