From ff6da5639f07be7c5db1ffd264256258b83ad525 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Fri, 27 Jan 2012 18:04:26 +0100 Subject: [PATCH] Fix the --output both when creating records --- swede | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swede b/swede index ca204f7..2490cb8 100755 --- a/swede +++ b/swede @@ -588,14 +588,14 @@ if __name__ == '__main__': break if cert: # Print the requested records based on the retrieved certificates - if args.output == 'b': + if args.output == 'both': print genTLSA(args.host, args.protocol, args.port, cert, 'draft', args.usage, args.selector, args.mtype) print genTLSA(args.host, args.protocol, args.port, cert, 'rfc', args.usage, args.selector, args.mtype) else: print genTLSA(args.host, args.protocol, args.port, cert, args.output, args.usage, args.selector, args.mtype) else: # Pass the path to the certificate to the genTLSA function - if args.output == 'b': + if args.output == 'both': print genTLSA(args.host, args.protocol, args.port, args.certificate, 'draft', args.usage, args.selector, args.mtype) print genTLSA(args.host, args.protocol, args.port, args.certificate, 'rfc', args.usage, args.selector, args.mtype) else: -- 2.36.1