Final arguments are displayed.

This commit is contained in:
Frédéric Tronel
2024-08-05 18:46:10 +02:00
parent a0b0c44afa
commit 3b2d310a0c
3 changed files with 27 additions and 2 deletions

View File

@@ -287,8 +287,6 @@ def main():
args.state = config.get('CSR','state')
if 'city' in options:
args.city = config.get('CSR','city')
logger.info(args)
if args.password == None:
logger.error('Password is mandatory')
@@ -307,6 +305,8 @@ def main():
if args.command == 'csr':
if args.output == None:
args.output = '%s.csr' % args.hostname
logger.info('Final arguments: %s' % args)
if args.command == 'csr':
getCSR(hostname=args.hostname, verify=args.verify, username=args.username, password=args.password, org=args.organization, ou=args.organizationalUnit, city=args.city, state=args.state, country=args.country, filename=args.output)