Merge "Fix logic in doc impact"
diff --git a/jeepyb/cmd/notify_impact.py b/jeepyb/cmd/notify_impact.py
index 0f81b1c..af1ad8a 100644
--- a/jeepyb/cmd/notify_impact.py
+++ b/jeepyb/cmd/notify_impact.py
@@ -85,8 +85,9 @@
For non-documentation impacts at all states of merge
notify the mailing list of impact.
"""
- if args.impact.lower() == 'docimpact' and args.hook == "change-merged":
- create_bug(git_log, args, 'openstack-manuals')
+ if args.impact.lower() == 'docimpact':
+ if args.hook == "change-merged":
+ create_bug(git_log, args, 'openstack-manuals')
return
email_content = EMAIL_TEMPLATE % (args.impact,