'Creates a new 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 create(self, os, architecture, version, url, md5hash, hypervisor='xen'):

    ctxt = context.get_admin_context()
    db.agent_build_create(ctxt, {'hypervisor': hypervisor, 'os': os, 'architecture': architecture, 'version': version, 'url': url, 'md5hash': md5hash})
