mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
xmpp: Remove special handling for empty arguments
- As tested in the updated test case, subprocess module can send empty arguments properly to the invoked commands. No special handling is necessary.
This commit is contained in:
1 parent
128aa42873
commit
393095db4e
2 files changed
+3
-2
No files matched your search
+2
-2
@@ -93,7 +93,7 @@ def parse_arguments():
|
||||
|
||||
def subcommand_pre_install(arguments):
|
||||
"""Preseed debconf values before packages are installed."""
|
||||
domainname = arguments.domainname.strip("'")
|
||||
domainname = arguments.domainname
|
||||
if not domainname:
|
||||
# If new domainname is blank, use hostname instead.
|
||||
domainname = socket.gethostname()
|
||||
@@ -157,7 +157,7 @@ def subcommand_change_hostname(arguments):
|
||||
|
||||
def subcommand_change_domainname(arguments):
|
||||
"""Update ejabberd and jwchat with new domainname"""
|
||||
domainname = arguments.domainname.strip("'")
|
||||
domainname = arguments.domainname
|
||||
if not domainname:
|
||||
# If new domainname is blank, use hostname instead.
|
||||
domainname = socket.gethostname()
|
||||
|
||||
Reference in new issue
Block a user