Skip to content

Commit

Permalink
fix: type in the docstring of crawl and scanner module fixed.
Browse files Browse the repository at this point in the history
Signed-off-by: Sudipto Baral <sudiptobaral.me@gmail.com>
  • Loading branch information
sudiptob2 authored and mshudrak committed Feb 27, 2023
1 parent d52cf4a commit f5f46b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/gcp_scanner/crawl.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@


def infinite_defaultdict():
"""Initalize infinite default.
"""Initialize infinite default.
Returns:
DefaultDict
Expand Down Expand Up @@ -517,7 +517,7 @@ def get_bq_tables(project_id: str, dataset_id: str,
bq_service: I do not know.
Returns:
A list of BigQuety tables in the dataset.
A list of BigQuery tables in the dataset.
"""

logging.info("Retrieving BigQuery Tables for dataset %s", dataset_id)
Expand Down Expand Up @@ -568,7 +568,7 @@ def get_bq(project_id: str,
request = service.datasets().list_next(
previous_request=request, previous_response=response)
except Exception:
logging.info("Failed to retrieve BQ datesets for project %s", project_id)
logging.info("Failed to retrieve BQ datasets for project %s", project_id)
logging.info(sys.exc_info())
return bq_datasets

Expand Down
4 changes: 2 additions & 2 deletions src/gcp_scanner/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def crawl_loop(initial_sa_tuples: List[Tuple[str, Credentials, List[str]]],
project_result['cloud_functions'] = crawl.get_cloudfunctions(
project_id, credentials)

# Get List of BigTable Instanses
# Get List of BigTable Instances
if is_set(scan_config, 'bigtable_instances'):
project_result['bigtable_instances'] = crawl.get_bigtable_instances(
project_id, credentials)
Expand Down Expand Up @@ -290,7 +290,7 @@ def gke_client_for_credentials(


def main():
logging.getLogger('googleapicliet.discovery_cache').setLevel(logging.ERROR)
logging.getLogger('googleapiclient.discovery_cache').setLevel(logging.ERROR)
logging.getLogger('googleapiclient.http').setLevel(logging.ERROR)

parser = argparse.ArgumentParser(
Expand Down

0 comments on commit f5f46b2

Please sign in to comment.