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-12-16 15:26:39 -0600
commit56779ecee295aa54f397438b98d832de04e96862 (patch)
treeeba53cdacea7573dc9a4c842142a96ab9a1cc9d1
parenttrace: Use c++14 instead of c++11 if possible (diff)
downloadrtems-tools-56779ecee295aa54f397438b98d832de04e96862.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 #4553
-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: