Ensure that the domain is obtained when removing an account

merge-requests/30/head
Bob Mottram 2021-03-08 21:29:41 +00:00
parent 206a56414a
commit 0825990eba
1 changed files with 4 additions and 0 deletions

View File

@ -1703,6 +1703,10 @@ if args.rmaccount:
if not args.domain or not getConfigParam(baseDir, 'domain'):
print('Use the --domain option to set the domain name')
sys.exit()
if args.domain:
domain = args.domain
else:
domain = getConfigParam(baseDir, 'domain')
configuredDomain = getConfigParam(baseDir, 'domain')
if configuredDomain: