Use FQDN instead of hostname when registering an account.

This commit is contained in:
James Valleroy 2014-12-20 14:05:03 -05:00 committed by Sunil Mohan Adapa
parent 3d7de0778b
commit 7680d398a6

View File

@ -178,11 +178,11 @@ def subcommand_register(arguments):
username = arguments.username
password = arguments.password
hostname = subprocess.check_output(['hostname'])
fqdn = socket.getfqdn()
try:
output = subprocess.check_output(['ejabberdctl', 'register',
username, hostname, password])
username, fqdn, password])
print(output.decode())
except subprocess.CalledProcessError as e:
print('Failed to register XMPP account:', e.output.decode())