aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/mgagit
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2014-04-21 19:44:34 +0000
committerColin Guthrie <colin@mageia.org>2014-04-21 19:44:34 +0000
commit670d69f4019e3e6631fb8067b103e1191b7dd736 (patch)
treed099f14ff7c0b7dbe65766a7e942925587c500f3 /deployment/mgagit
parentc79382c57be82ebf0d51df4871c2165ef4d76421 (diff)
downloadpuppet-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.
Diffstat (limited to 'deployment/mgagit')
-rwxr-xr-xdeployment/mgagit/templates/git_multimail.py8
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)