'Update an existing agent build.'

@args('--os', metavar='<os>', help='os')
@args('--architecture', dest='architecture', metavar='<architecture>', help='architecture')
@args('--version', metavar='<version>', help='version')
@args('--url', metavar='<url>', help='url')
@args('--md5hash', metavar='<md5hash>', help='md5hash')
@args('--hypervisor', metavar='<hypervisor>', help='hypervisor(default:    xen)')
def modify(self, os, architecture, version, url, md5hash, hypervisor='xen'):

    ctxt = context.get_admin_context()
    agent_build_ref = db.agent_build_get_by_triple(ctxt, hypervisor, os, architecture)
    db.agent_build_update(ctxt, agent_build_ref['id'], {'version': version, 'url': url, 'md5hash': md5hash})
