#!/bin/env python
# -*- coding: utf8 -*-

import fedmsg


def message(image_name, dest, status):
    """ Takes an upload destination (ex. "EC2-east") and a status (ex.
    "failed"). Emits a fedmsg appropriate for each image upload task. """

    fedmsg.publish(topic='image.upload', modname='fedimg', msg={
        'image': image_name,
        'destination': dest,
        'status': status,
    })

#!/bin/env python
# -*- coding: utf8 -*-

import fedmsg


def message(image_name, dest, status):
    """ Takes an upload destination (ex. "EC2-east") and a status (ex.
    "failed"). Emits a fedmsg appropriate for each image upload task. """

    fedmsg.publish(topic='image.upload', modname='fedimg', msg={
        'image_name': image_name,
        'destination': dest,
        'status': status,
    })

Make fedmsg message attribute 'image_name', not just 'image'
Make fedmsg message attribute 'image_name', not just 'image'
