bugfix with email plugin and targets in url() call

pull/140/head
Chris Caron 2019-08-16 23:01:11 -04:00
parent d9c5e9f7ac
commit a3abe06bbf
1 changed files with 1 additions and 1 deletions

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),
)