diff --git a/endpoints/v1/index.py b/endpoints/v1/index.py index 74d6b9c2d..7f276685a 100644 --- a/endpoints/v1/index.py +++ b/endpoints/v1/index.py @@ -237,7 +237,8 @@ def update_images(namespace_name, repo_name): updated_tags = session.get('pushed_tags', {}) event_data = { - 'updated_tags': updated_tags,} + 'updated_tags': updated_tags.keys(), + } track_and_log('push_repo', repo) spawn_notification(repo, 'repo_push', event_data) diff --git a/notifications/notificationevent.py b/notifications/notificationevent.py index 02578e1a6..1a189da03 100644 --- a/notifications/notificationevent.py +++ b/notifications/notificationevent.py @@ -100,7 +100,7 @@ class RepoPushEvent(NotificationEvent): def get_sample_data(self, namespace_name, repo_name, event_config): return build_repository_event_data(namespace_name, repo_name, { - 'updated_tags': {'latest': 'someimageid', 'foo': 'anotherimage'}, + 'updated_tags': ['latest', 'foo'], 'pruned_image_count': 3 })