def make_target(args):
    try:
        target = NovaCompute(user=args.user, hosts=args.hosts.split(','), key_filename=args.key_filename,
                             password=args.password)
    except AttributeError:
        sys.stderr.write('No hosts found. Please using --hosts param.')
        sys.exit(1)
    return target