Use FQDN instead of hostname when registering an account.

This commit is contained in:
James Valleroy authored and Sunil Mohan Adapa committed 2015-01-03 14:43:51 +05:30
1 parent 3d7de0778b
commit 7680d398a6
1 file changed
+2 -2
+2 -2
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())