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:
Sunil Mohan Adapa committed 2015-05-26 16:10:54 +05:30
1 parent 128aa42873
commit 393095db4e
2 files changed
+3 -2

No files matched your search

+2 -2
View File
@@ -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()