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