Permalink
Browse files

Don't log AWS metadata if value is empty

  • Loading branch information...
1 parent e1c120f commit 709fa41f75cfb0988668895a6bd0b3b8d962d2e2 @codeinthehole codeinthehole committed Jan 24, 2017
Showing with 3 additions and 2 deletions.
  1. +3 −2 xocto/events/core.py
@@ -40,8 +40,9 @@ def publish(event, params=None, meta=None, account=None, request=None):
# Add static metadata
for key, setting in METADATA.items():
- if hasattr(settings, setting):
- meta[key] = getattr(settings, setting)
+ value = getattr(settings, setting, '')
+ if value:
+ meta[key] = value
# Add metadata from request
if request is not None:

0 comments on commit 709fa41

Please sign in to comment.