Remove the pushed_image_count since we aren't getting the data anyway

This commit is contained in:
Joseph Schorr 2014-10-22 15:26:29 -04:00
parent 208c97776f
commit ea96dbb2ad
2 changed files with 0 additions and 6 deletions

View file

@ -299,9 +299,6 @@ def update_images(namespace, repository):
# Make sure the repo actually exists.
abort(404, message='Unknown repository', issue='unknown-repo')
profile.debug('Parsing image data')
image_with_checksums = json.loads(request.data.decode('utf8'))
if get_authenticated_user():
profile.debug('Publishing push event')
username = get_authenticated_user().username
@ -325,10 +322,8 @@ def update_images(namespace, repository):
updated_tags = session.get('pushed_tags', {})
event_data = {
'updated_tags': updated_tags,
'pushed_image_count': len(image_with_checksums),
'pruned_image_count': num_removed
}
spawn_notification(repo, 'repo_push', event_data)
return make_response('Updated', 204)

View file

@ -84,7 +84,6 @@ class RepoPushEvent(NotificationEvent):
def get_sample_data(self, repository):
return build_event_data(repository, {
'updated_tags': {'latest': 'someimageid', 'foo': 'anotherimage'},
'pushed_image_count': 10,
'pruned_image_count': 3
})