From: Pieter Lexis <pieter.lexis@os3.nl>
Date: Fri, 27 Jan 2012 17:04:26 +0000 (+0100)
Subject: Fix the --output both when creating records
X-Git-Url: https://git.svenne.dk/?a=commitdiff_plain;h=ff6da5639f07be7c5db1ffd264256258b83ad525;p=public%2Fdnssec-swede-utility.git

Fix the --output both when creating records
---

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: