@utils.arg('os', metavar='<os>', help=_('Type of OS.'))
@utils.arg('architecture', metavar='<architecture>', help=_('Type of architecture.'))
@utils.arg('version', metavar='<version>', help=_('Version.'))
@utils.arg('url', metavar='<url>', help=_('URL.'))
@utils.arg('md5hash', metavar='<md5hash>', help=_('MD5 hash.'))
@utils.arg('hypervisor', metavar='<hypervisor>', default='xen', help=_('Type of hypervisor.'))
def do_agent_create(cs, args):
 result = cs.agents.create(args.os, args.architecture, args.version, args.url, args.md5hash, args.hypervisor)
 utils.print_dict(result.to_dict())

@ utils . arg ( 'os' , metavar = '<os>' , help = _ ( 'Type of OS.' ) ) @ utils . arg ( 'architecture' , metavar = '<architecture>' , help = _ ( 'Type of architecture.' ) ) @ utils . arg ( 'version' , metavar = '<version>' , help = _ ( 'Version.' ) ) @ utils . arg ( 'url' , metavar = '<url>' , help = _ ( 'URL.' ) ) @ utils . arg ( 'md5hash' , metavar = '<md5hash>' , help = _ ( 'MD5 hash.' ) ) @ utils . arg ( 'hypervisor' , metavar = '<hypervisor>' , default = 'xen' , help = _ ( 'Type of hypervisor.' ) ) def do_agent_create ( cs , args ) : result = cs . agents . create ( args . os , args . architecture , args . version , args . url , args . md5hash , args . hypervisor ) utils . print_dict ( result . to_dict ( ) )
create new agent build .