logger.info("Found Looker ENV VAR in the system.") except Exception as e: logger.error('Missing Environment Variables {}'.format(e)) if not api_user.validate_api_creds(): logger.error('Ensure API credentials have Admin role.') exit(0) looker_version = get_looker_version(looker_client) looker_url = get_looker_instance() logger.info('Checking instance: {}'.format(looker_url)) # USERS all_users = api_user.count_all_users() user_issue_details = api_user.get_users_issue() logger.info('Checked: {}'.format(Users.__repr__(api_user))) #################################################################### # PROJECTS my_project = Projects(looker_client) count_all_projects = my_project.count_all_projects() all_projects = my_project.all_projects() # to reuse throughout code logger.info('Checked: {}'.format(Projects.__repr__(my_project))) #################################################################### # CONTENT my_content = Content(looker_client) count_content_errors = my_content.count_all_errors() content_errors = my_content.validate_content()