[rtems-tools commit] rtemstoolkit/mailer.py: Return full smtp-host arg value

Joel Sherrill joel at rtems.org
Thu Dec 16 21:26:47 UTC 2021


Module:    rtems-tools
Branch:    5
Commit:    56779ecee295aa54f397438b98d832de04e96862
Changeset: http://git.rtems.org/rtems-tools/commit/?id=56779ecee295aa54f397438b98d832de04e96862

Author:    Alex White <alex.white at oarcorp.com>
Date:      Mon Apr 12 13:45:10 2021 -0500

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

---

 rtemstoolkit/mailer.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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:



More information about the vc mailing list