bugfix with email plugin and targets in url() call

This commit is contained in:
Chris Caron 2019-08-16 23:01:11 -04:00
parent d9c5e9f7ac
commit a3abe06bbf

View File

@ -592,7 +592,7 @@ class NotifyEmail(NotifyBase):
hostname=NotifyEmail.quote(self.host, safe=''),
port='' if self.port is None or self.port == default_port
else ':{}'.format(self.port),
targets='' if has_targets else '/'.join(
targets='' if not has_targets else '/'.join(
[NotifyEmail.quote(x, safe='') for x in self.targets]),
args=NotifyEmail.urlencode(args),
)