def main():
    '''
    Main function
    '''

    # We should only steal the root logger if we're the application, not the module
    logging.basicConfig(level=logging.DEBUG)

    args = get_args()
    if args.password:
        password = args.password
    else:
        password = getpass(
            prompt='Enter password for {}@{}: '.format(args.user, args.host)
        )
    opsview = Opsview(
        host=args.host,
        port=args.port,
        use_ssl=args.ssl,
        verify_ssl=not args.skip_ssl_verification,
        username=args.user,
        password=password,
        verbose=args.verbose,
    )
    d = {}
    with open('vcenter.json') as f:
        d = json.load(f)
    logger.debug(
        pformat(opsview.create_host(params=d, verbose=args.verbose))
    )