diff options
author | Colin Guthrie <colin@mageia.org> | 2014-04-21 19:44:34 +0000 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2014-04-21 19:44:34 +0000 |
commit | 670d69f4019e3e6631fb8067b103e1191b7dd736 (patch) | |
tree | d099f14ff7c0b7dbe65766a7e942925587c500f3 | |
parent | c79382c57be82ebf0d51df4871c2165ef4d76421 (diff) | |
download | puppet-670d69f4019e3e6631fb8067b103e1191b7dd736.tar puppet-670d69f4019e3e6631fb8067b103e1191b7dd736.tar.gz puppet-670d69f4019e3e6631fb8067b103e1191b7dd736.tar.bz2 puppet-670d69f4019e3e6631fb8067b103e1191b7dd736.tar.xz puppet-670d69f4019e3e6631fb8067b103e1191b7dd736.zip |
mgagit: Don't report any error message when no change email address configured.
When we will send to the i18n-reports ML info about i18n related changes we
will omit the overall summary mail (it's too complext to produce a summary
of only i18n changes) and thus we need to squash this error message which
will not be nice for those pushing changes.
-rwxr-xr-x | deployment/mgagit/templates/git_multimail.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/deployment/mgagit/templates/git_multimail.py b/deployment/mgagit/templates/git_multimail.py index cd8d30e6..ab192936 100755 --- a/deployment/mgagit/templates/git_multimail.py +++ b/deployment/mgagit/templates/git_multimail.py @@ -2253,13 +2253,7 @@ class Push(object): unhandled_sha1s = set(self.get_new_commits()) for change in self.changes: # Check if we've got anyone to send to - if not change.recipients: - sys.stderr.write( - '*** no recipients configured so no email will be sent\n' - '*** for %r update %s->%s\n' - % (change.refname, change.old.sha1, change.new.sha1,) - ) - else: + if change.recipients: sys.stderr.write('Sending notification emails to: %s\n' % (change.recipients,)) mailer.send(change.generate_email(self, body_filter), change.recipients) |