summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex White <alex.white@oarcorp.com>2021-04-12 13:45:10 -0500
committerJoel Sherrill <joel@rtems.org>2021-04-13 16:44:42 -0500
commit1a575af81717a74b9c927b47b20abb814595391b (patch)
tree67ae036cbec435b3efc53e5f17101fa6df1feff5
parent177c7520f45ec474387dced653395f37c1430bb1 (diff)
downloadrtems-tools-1a575af81717a74b9c927b47b20abb814595391b.tar.bz2
rtemstoolkit/mailer.py: Return full smtp-host arg value
This fixes mail.smtp_host() so that it returns the full argument value rather than just the second character. Updates #4384
-rw-r--r--rtemstoolkit/mailer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rtemstoolkit/mailer.py b/rtemstoolkit/mailer.py
index f8f813c..3ea9d98 100644
--- a/rtemstoolkit/mailer.py
+++ b/rtemstoolkit/mailer.py
@@ -123,7 +123,7 @@ class mail:
def smtp_host(self):
host = self._get_arg('--smtp-host')
if host is not None:
- return host[1]
+ return host
if self._args_are_macros():
host = self.opts.defaults.get_value('%{_mail_smtp_host}')
if host is not None: