Handle no domain

main
Bob Mottram 2021-09-10 20:17:22 +01:00
parent 2a94dc9516
commit 0629505087
1 changed files with 6 additions and 3 deletions

View File

@ -900,17 +900,20 @@ if args.json:
}
if not args.domain:
args.domain = getConfigParam(baseDir, 'domain')
domain = ''
if args.domain:
domain = args.domain
signingPrivateKeyPem = None
if args.secureMode:
signingPrivateKeyPem = getInstanceActorKey(baseDir, args.domain)
signingPrivateKeyPem = getInstanceActorKey(baseDir, domain)
if debug:
print('baseDir: ' + str(baseDir))
if signingPrivateKeyPem:
print('Obtained instance actor signing key')
else:
print('Did not obtain instance actor key for ' + args.domain)
print('Did not obtain instance actor key for ' + domain)
testJson = getJson(signingPrivateKeyPem, session, args.json, asHeader,
None, debug, __version__, httpPrefix, args.domain)
None, debug, __version__, httpPrefix, domain)
pprint(testJson)
sys.exit()