From 7680d398a6d7b38163fff3e7cfdaeab7e38dc4c7 Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Sat, 20 Dec 2014 14:05:03 -0500 Subject: [PATCH] Use FQDN instead of hostname when registering an account. --- actions/xmpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actions/xmpp b/actions/xmpp index 1d8ef0b99..ea2d0c29e 100755 --- a/actions/xmpp +++ b/actions/xmpp @@ -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())